在使用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未能测试通过.
有更多方法请指出,非常感谢