Dependency Walker: Error Opening File

倾然丶 夕夏残阳落幕 提交于 2019-12-23 02:42:31

问题


I am using Dependency Walker to try and resolve a .dll error. I have a main project that includes many libraries. Dependency Walker shows an error on 4 .dlls:

Error opening file. The system cannot find the file specified (2).

Which is funny because the output of Visual Studio's linker clearly shows that the libraries have been found. Everything in the .exe is linked properly (all symbols are resolved). When I start the application I get a Windows error:

The program has stopped working.

I'm using the same API that was discussed in this question: Win32 DLL importing issues (DllMain). If I build in debug mode I get the error that is quoted about memory initialization.

Are the .dlls being included or is the problem that Dependency Walker can't see the .dlls? Is this because the relevant libraries are import libraries?


回答1:


The .dlls were being included. Dependency Walker just didn't know where to find the files. Adding the library directories to the system PATH variable allowed Dependency Walker to find the libraries.



来源:https://stackoverflow.com/questions/12319834/dependency-walker-error-opening-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!