Jump to content
  • Advertisement
Sign in to follow this  
LlamaFood

MSVC++6 DLL Directory

This topic is 5045 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
You don't. The operating system is the one that goes looking for the DLL, not the compiler. When something tries to load a DLL, Windows looks in these places, in order:

1. The directory from which the application loaded.
2. The current directory.
3. The system directory.
4. The 16-bit system directory. (For NT based kernels)
5. The Windows directory.
6. The directories that are listed in the PATH environment variable.

Share this post


Link to post
Share on other sites
What's the PATH environment variable?
EDIT:: My problem is that I'm trying to statically link a DLL using #pragma comment() for my .lib and #include for a header, and when I run the program it cannot find the DLL because it is in another project. How do I tell the compiler its in that other project?

Share this post


Link to post
Share on other sites
Quote:
Original post by LlamaFood
What's the PATH environment variable?
EDIT:: My problem is that I'm trying to statically link a DLL using #pragma comment() for my .lib and #include for a header, and when I run the program it cannot find the DLL because it is in another project. How do I tell the compiler its in that other project?
that's a variable in the windows environment, depending on what version of windows it's probably set in different places in different places. On old version it might be in c:\autoexec.bat; on my system it is accessed through control panel>system>advanced>environment variables.

Share this post


Link to post
Share on other sites
Regarding your problem; how I usually do it is by having a "bin" directory which all my workspace' projects puts it's exe and dll files. Then I set in the MSVC environment that this bin directory must be the working directory under "properties>debugging".

Share this post


Link to post
Share on other sites
If you want to look at your current environment variables or to add new ones right-click on the "My Computer" icon, then select "Advanced", in the dialog box that comes up you will see an option for environment variables which will let you view/modify/add entries.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!