我使用Visual Studio 2010 Express在C++中构建了一个应用程序。当我试图今天一定的计算机上运行它,我得到这个错误:“MSVCP100.dll不是设计为在Windows上运行,或者它包含错误”
MyApplication.exe - Bad Image
C:\Path to My Application\MSVCP100.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.
提到的DLL是Visual C++可再发行的DLL之一。我的应用程序的安装程序用于启动这些DLL的Microsoft安装程序,但我最近调整它只是为了将msvcp100.dll和msvcr100.dll安装在我的应用程序旁边。这种新方式在少数其他计算机上运行良好,但我无法排除这种可能性,因为这些DLL已经在系统级别安装在其他计算机上。
什么导致这种突然的DLL不匹配?
你说得对。使用C:\ Windows \ SysWOW64中的DLL让应用程序正常工作。 – bdesham 2014-09-11 15:06:37