How to load external DLL?
Answered
How to load external DLL?
HINSTANCE hdl = LoadLibraryA("PropDLL.dll");
I'm trying this way, but it doesn't load.
Cpp file is in the same directory
thank you
Please sign in to leave a comment.
If you use LoadLibraryA(), you need to either put the DLL in the same directory as the executable (cmake-build-debug subfolder by default), or pass the full path to the DLL when calling LoadLibraryA().