I have a project A linked to a project B. B is compiled into a .dll while A is the main program and compiled into a .exe
The compiling of the projects is done without any issues, but when I run the program, I get a pop-up window saying “This application has failed to start because B.dll was not found. Re-installing the application may solve the problem.”
I have done several cleanings, tried to move the dll, but that won’t work.
I am using visual Studio 9.0 btw
When Windows loads an EXE, it will check what DLL’s are needed, directly or indirectly. In your case, A.EXE will need B.dll. When Windows has determined that list, it will use this procedure to locate the DLLs:
[1] Symbolic links can cause an executable to have multiple paths. To be precise here, it’s the path of the executable that was passed to CreateProcess.