I have an EXE file which needs a DLL to be executed correctly, the problem is I need to change location of DLL and it can't be beside the EXE file (e.g. it should be in a \bin folder beside the EXE file). How can I add this path (e.g. bin folder) to searching DLL folder of windows?
Asked
Active
Viewed 84 times
0
-
1Add the dll position to PATH. – LPs May 19 '15 at 09:30
-
Is it COM or .NET dll ? – M.L. May 19 '15 at 09:30
-
1Look at the MSDN page for [DLL Search Order](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586.aspx). From there, you can decide what your options are for placing it. – MicroVirus May 19 '15 at 09:35
2 Answers
0
The MSDN page on DLL Search Order describes how the windows loader handles searching for the DLL.
Depending on your situation, you can add the location of your DLL to the PATH
variable, but do note that this is last in the search list, behind the application folder and all of the system folders.

MicroVirus
- 5,324
- 2
- 28
- 53