ngaut

asm/c/c++/......

常用链接

统计

积分与排名

others

something special

经典的c/c++

朋友的网上家园

最新评论

如何解决"找不到MSVCR80.dll "的问题


目前有三种解决方法。

1, 在程序cpp文件里加上下面句子:

#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 \)

可参考:

http://www.codeproject.com/cpp/PrivateAssemblyProjects.asp?msg=2122107

 

 

2, 在程序cpp文件里加上下面句子:

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

 

可参考:

http://jewelry-wolf.spaces.live.com/blog/cns!9041D1290EF347B0!591.entry

 

3, 在项目属性 C/C++ 的Command Line 里加上

       /D _VC80_UPGRADE=0x0710

      可以解决debug版本程序运行不了的问题。

 

这是作者本人发现的法子,很实用。原理未明。
 

posted on 2007-11-17 12:06 ngaut 阅读(4236) 评论(2)  编辑 收藏 引用 所属分类: c/c++/ds

评论

# re: 如何解决"找不到MSVCR80.dll "的问题 2007-12-28 20:11 Kouga

或者……安裝MSVC8的再分發包。  回复  更多评论   

# re: 如何解决"找不到MSVCR80.dll "的问题 2008-01-22 13:44 Cinny

i have tried these 3 methods, but still cannot fix this problem~
anyway, thanks a lot  回复  更多评论   


标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]
相关链接:
网站导航: