浪客的小猪窝

无他,唯手熟尔!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Visual Studio编译的程序在某些机器上运行提示“由于应用程序配置不正确,应用程序未能启动”的问题

 

 

个人认为比较有效的几种解决方案:

 

1.首先试试把"debug"编译方式改为"release"编译。

 

2.在类似于"....\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.DebugCRT"目录下,找到

msvcm80d.dll

msvcp80d.dll

msvcr80d.dll

Microsoft.VC80.DebugCRT.manifest

这几个文件,将其拷贝到目标机器上,与运行程序同一文件夹或放到system32下。

 

3.在Visual Studio安装目录下找到再分发包vcredist_xxx.exe和你的程序捆绑安装。

 

4.工程->属性->配置属性->常规->MFC的使用,选择"在静态库中使用mfc "

("Project"->"Property"->"Configuration Properties"->"ProjectDefaults"->"Use of MFC"选择"Use MFC in a Static Library")

posted on 2012-04-21 11:37  BlackKylin  阅读(773)  评论(0)    收藏  举报