2,335 questions
Score of 0
1 answer
190 views
DLL load failure when importing both libsumo and pyarrow
I'm creating new venv (using virtualenv) with Python 3.12.
The only two packages I'm installing are libsumo and pyarrow.
When I run only this line:
import libsumo
or only this line:
import pyarrow
...
Score of 2
1 answer
113 views
How do I send a string to this unmanaged C++ function?
I have a .dll written in C++ with a C style API. I have successfully implemented various interop methods but this one is causing exceptions.
BL_API BLResult BL_CDECL bl_image_write_to_file(const ...
Score of 4
1 answer
241 views
Visual C++ link weirdness with bcrypt.dll
On Windows 11, the BCrypt library contains the Microsoft cryptographic functions. I have noticed a unique behaviour of the linker when linking against bcrypt.dll and I would appreciate the opinion of ...
Score of 0
0 answers
42 views
Using 32-bit Python 2.7 extension with Windows 10 64bit
I'm attempting to use a 32-bit Python 2.7 extension called PicoScript on a modern setup. I have to use this extension because the hardware I'm connecting to requires it.
Since most of this stack has ...
Score of 1
0 answers
68 views
Getting "ImportError: DLL load failed" after building an .exe in Python
I use Python 3.10 and OpenCV, building from sources with CUDA enabled and it worked. Then I try to build the .exe using Pyinstaller this also worked.
Problem:
When I try to run the EXE file, the ...
Score of 1
1 answer
176 views
Why the `LoadLibrary()` function and delay-load use different DLL search path?
I have a case when the LoadLibrary() function and the delay-load DLL use different DLL search path. Specifically:
LoadLibrary("DLL2.dll"); // succeeds
while:
FunctionFromDLL1(); // fails to ...
Score of 0
1 answer
166 views
Diagnosing delay import failure of DPAPI.DLL in CRYPT32.DLL
I have an application that simply calls the CryptProtectData() function:
CryptProtectData(...);
This call returns FALSE and the GetLastError() function returns 127 (0x7F), which is ...
Score of 2
0 answers
121 views
Unable to link DLL in WinUI3 Packaged app
I am writing an interop in C# for a library written in C (Openslide https://openslide.org/). I want to utilize the wrapper in a WinUI 3 app for a whole slide image viewer. I placed the DLLs in a ...
Score of 1
1 answer
187 views
Pycharm : DLL load failed while importing QWidgets
I've got a problem in Pycharm while running the following code:
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QVBoxLayout
from PyQt5.QtCore import QTimer, QTime, Qt
class ...
Score of 1
1 answer
164 views
T5ManagerAPI fails to initialize after .NET 8 publish (works fine locally)
I'm building a .NET 8 Web API that connects to MetaTrader 5 using the MT5 Manager API.
Everything works perfectly when running locally from Visual Studio.
However, after publishing and deploying the ...
Score of 0
0 answers
106 views
Windows can‘t seem to find DLL from UCRT dir
I am currently trying to build a C++ Application/Program that uses libcurl which I installed using MSY2S UCRT. The dll.a file gets correctly linked and libcurl can be found in the import table of the ...
Score of 0
0 answers
141 views
C# & .NET 4.8 - DllImport does work in Debug mode but not in Release mode
I have the following code:
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr SetDllDirectory(string lpPathName);
string dllFolderPath= @"C:\temp\lib";...
Score of 1
1 answer
680 views
Pyinstaller: issue with pip-system-certs and cannot resolve.dll files
I have a python code piece which makes an API call to get the data. After I upgrade my python to 3.11.6. I am getting the same error as this post:Python SSL certificate verify error
I used one of its ...
Score of 1
1 answer
86 views
MarshalDirectiveException when using DllImport with function returning a struct by value
I am trying to call a function MyCFunction in a C library from C# using DllImport. The C function is defined in the header file as follows
#ifdef WIN32
#define EXPORT __declspec(dllexport)
#else
#...
Score of 1
1 answer
202 views
load DLL with ctypes fails
I use a proprietary Python package. Within this Python package the following DLL load command fails.
scripting_api = ctypes.CDLL("scripting_api_interface")
Could not find module '...