VS下程序运行报0xc000007b

来源:互联网 发布:淘宝怎样用百联ok卡用 编辑:程序博客网 时间:2024/05/29 18:28

参考网址:https://social.msdn.microsoft.com/Forums/vstudio/en-US/96035692-9a50-40d4-a7d3-48bda87d11ec/the-application-was-unable-to-start-correctly-0xc000007b-click-ok-to-close-the-application-when?forum=vssetup


解决办法:

ReImage does solve the problem. I recently found a solution that doesn't require reimage.

The problem was due to 32/64-bit mismatches of various system dlls required by Visual studio. Somehow the dlls it needs got replaced by 64-bit versions that it couldn’t load.

Replacing the dlls mentioned below from a machine that is working solves the problem:

c:\Windows\SysWOW64\msvcp100.dll
c:\Windows\SysWOW64\msvcp100d.dll
c:\Windows\SysWOW64\msvcr100.dll
c:\Windows\SysWOW64\msvcr100_clr0400.dll
c:\Windows\SysWOW64\msvcr100d.dll


分析:

运行报这个错误,网上大部分分析是32位程序调用了64位dll,笔者原因是装的Win7 位系统从不检查更新,导致dll的版本比较陈旧,与VS不匹配。

1 0