Click to See Complete Forum and Search --> : Is there a way to specify a path with static DLL loading?


Matthew Carter
April 8th, 1999, 10:51 PM
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.

Rob Wainwright
April 10th, 1999, 03:12 PM
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.