VS2005运行提示:没有找到 MSVCR80.dll

在使用vs2005的过程中,经常会碰到 VS2005运行Debug版本时 提示:"没有找到MSVCR80.DLL,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题"

 

而在运行Release版本则不存在此问题

 

解决办法:

 

1: http://hi.baidu.com/honinbou/blog/item/c1a6eec3151a2a5db319a8a0.html

Properties->Configuration Properties->Code generation->Runtime Library 中的

 Multi-threaded Debug DLL 改成 Multi-threaded DLL (/MD),问题解决

 

2: http://www.cnblogs.com/sunrack/articles/588110.html

在 stdafx.h 中添加以下代码

#pragma comment(linker, "/"/manifestdependency:type='Win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='X86' publicKeyToken='1fc8b3b9a1e18e3b' language='*'/"")

问题解决

 

3:http://www.codeproject.com/KB/cpp/PrivateAssemblyProjects.aspx?msg=2122107

#ifdef _DEBUG
#define __LIBRARIES_SUB_VERSION    "Debug"
#else
#define __LIBRARIES_SUB_VERSION    ""
#endif

// Manifest for the CRT
#pragma comment(linker,"/manifestdependency:/"type='win32' " /
    "name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".
    "
__LIBRARIES_SUB_VERSION "CRT' " /
    "version='" _CRT_ASSEMBLY_VERSION "' " /
    "processorArchitecture='x86' /"")

// Manifest for the MFC
#pragma comment(linker,"/manifestdependency:/"type='win32' " /
    "name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".
    "
__LIBRARIES_SUB_VERSION "MFC' " /
    "version='" _CRT_ASSEMBLY_VERSION "' " /
    "processorArchitecture='x86'/"")

#pragma comment(linker,"/manifestdependency:/"type='win32' " /
    "name='" __LIBRARIES_ASSEMBLY_NAME_PREFIX ".MFCLOC' " /
    "version='" _CRT_ASSEMBLY_VERSION "' " /
    "processorArchitecture='x86'/"")

 

尝试了一下,没能解决问题,不知道哪里有问题, 有知道的欢迎指正

 

方法1,2 测试通过,方法3未能测试通过.

有更多方法请指出,非常感谢

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值