In Visual Studio, you create a .dll project and create DLL files and .lib files. You are statically bound to .lib, and if .dll is in the same folder as .exe, everything works.
I suspect that everything will work if the .dll is located in System32 or in any other PATH folder (confirm or correct, please).
But here is the question: I want my exe to find .dll in the. / DLLS / folder, that is, if my exe is in ...... /MyApp/MyApp.exe, then it should look for .dll in .. ... /MyApp/DLLS/MyDll.dll. I DO NOT want to include the dlls folder in the path. Is there any way to do this?
Please note that I do not want to explicitly use LoadLibrary, so I cannot specify the path there.
Thanks in advance for any help.
source
share