Is there a way to specify a path with static DLL loading?
I can specify the path for a dynamically loaded DLL by specifying the path in a LoadLibrary call like this:
hDll = LoadLibrary("C:\\Path\\dll.dll");
Is there a way to similarly hard-code the path of an individual DLL when I link with .lib files instead of using LoadLibrary?
I'm using VC++ 5.0 on Windows 98.
Re: Is there a way to specify a path with static DLL loading?
In the linker options instead of just specifying the library file name (and having it located on the library path list) you can supply relative or absolute paths to the individual libraries.
Hope that helps.