CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    1

    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.



  2. #2
    Join Date
    May 1999
    Posts
    69

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured