Jump to content
  • Advertisement
Sign in to follow this  
mylifemysoul

customerized DLL directory?

This topic is 2949 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

Hi guys. Just have a quick question.

Normally, we can store the DLLs in the windows/system directory or the current working directory. When the DLLs are needed, the program can find them in these directories.

My question is, is it possible to make a new directory, say called NewDir under the current working directory. And store my DLLs there?

Share this post


Link to post
Share on other sites
Advertisement
Thanks a lot for the replies. They are surely very helpful.

It might be a stupid question, but to be specific,

If my project directory is ........\work and I want the DLL files to be stored under .........\work\DLL
I don't want the directory of the DLL files to be absolute. How do I do the above?

Share this post


Link to post
Share on other sites
Quote:
Original post by mylifemysoul
If my project directory is ........\work and I want the DLL files to be stored under .........\work\DLL
I don't want the directory of the DLL files to be absolute. How do I do the above?
Personally, I'd use LoadLibrary(), but it depends if the DLLs can be loaded at runtime or not. What DLLs are you referring to?

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Quote:
Original post by mylifemysoul
If my project directory is ........\work and I want the DLL files to be stored under .........\work\DLL
I don't want the directory of the DLL files to be absolute. How do I do the above?
Personally, I'd use LoadLibrary(), but it depends if the DLLs can be loaded at runtime or not. What DLLs are you referring to?


glut32.dll; SDL.dll; zlib1.dll and probably libfreetype-6.dll later

Share this post


Link to post
Share on other sites
Do NOT store your custom DLLS in the windows/system32 folder.

This is not a place you should be placing your files and programs doing so is the main cause of 'dll hell' on windows.

There are guidelines on MSDN as to where you should put dlls (I can't link to it atm as I don't have the link handy).

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!