visual studio 2010 - “MSVCP100.dll is either not designed to run on Windows or it contains an error” -
i built application in c++ using visual studio 2010 express. when tried run on computer today got error:
myapplication.exe - bad image
c:\path application\msvcp100.dll either not designed run on windows or contains error. try installing program again using original installation media or contact system administrator or software vendor support.
the dll mentioned 1 of visual c++ redistributable dlls. application’s installer used launch microsoft’s installer dlls tweaked install msvcp100.dll , msvcr100.dll alongside application. new way worked fine on handful of other computers, though can’t rule out possibility that because dlls had been installed @ system level on other computers.
what causing sudden dll mismatch?
that's status_invalid_image_format, machine property in dll header doesn't match architecture of application.
do keep in mind have two copies of dll on build machine, x86 , x64 version. later versions of vs have 3rd copy, arm version. high odds picked wrong one. you'd target x86, 1 tested program stored in c:\windows\syswow64 directory. 64-bit version in c:\windows\system32.
how these directories got these seemingly backward names story day :) favor using vc/redist subdirectory of vs install directory source copy, less ambiguous.
Comments
Post a Comment