views:

33

answers:

3

On linux, we have LIBRARY_PATH and LD_LIBRARY_PATH environment variables in order for programs to search for libraries. Do we have similar thing on windows? Particularly Windows 7?

Also, I would like to know best practices for DLL use (where to put them, use envs or not, etc.), since I want to work on windows like everyone does, and not to sloth myself on workarounds :)

+1  A: 

Take a look at the help for the LoadLibrary and CreateProcess functions. These describe the paths used to locate DLLs, and how you can modify them.

anon
A: 

It is worth to read this topic.

VitalyVal
+1  A: 

It looks on currentDir first then WinDir and SystemDir also in your path

luca