I know that this has already been discussed somewhere here, but I did not find the question that I wanted, namely: I have a C ++ application that uses a lot (over 20-30) DLLs. In my Visual Studio 2010 project, I determined that .exe will be copied to ProjectDir (so that everything is neat and clear), but when .exe is only in ProjectDir, it cannot access the DLLs stored in bin.// any folder along with many other files.
Is it possible to somehow specify the DLL folder so that the application finds out where they are? (and in the folder folder <myapp>.exe.localdoes not work in my Windows 7)
<myapp>.exe.local
exe , .exe , . , dll, Windows, DLL , , DLL PATH, , .
, dll, dll, , (, HINSTANCE hDLL = LoadLibrary(L"C:\\mydll.DLL");) , -, dll ( , 2 ), (. HINSTANCE hDLL LoadLibrary("..\\dlls\\mydll.dll")
HINSTANCE hDLL = LoadLibrary(L"C:\\mydll.DLL");
HINSTANCE hDLL LoadLibrary("..\\dlls\\mydll.dll")
PATH. , dll: http://msdn.microsoft.com/en-us/library/ms682586%28v=vs.85%29.aspx Windows 7: http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx