How to load external DLL?

已回答

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
0

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().

0

请先登录再写评论。