Author: Zhu Jinchan
Source: http://blog.csdn.net/clever101
Last week colleagues used VS2008 to compile a C + + console project. Engineering can be compiled successfully in release mode, but running always shows errors that cannot be found msvcp90.dll. There is no problem compiling and running on my machine. I used depends to open the EXE file, use the full path to view the dependent library, and found that Msvcp90.dll (the colleague's vs 2008 has already been installed VS 2008 SP1). The project has been set up to embed the manifest file, why can not find msvcp90.dll it. For a moment I could not think of a solution. I thought of simply ignoring the idea of the library, setting up the ignore specified library in the relase mode of the project: Msvcp.lib. Something wonderful has come up, and the program actually works. Then use depends open EXE program to observe, found that can find Msvcp90.dll. I checked on the Internet, there is no real msvcp.lib this library file. Ignoring an import library that doesn't exist actually solves the problem. I can only guess to ignore this library after changing the internal PE file structure. Now let's write it down and see if there's a chance to figure it out later.