编译能通过 但是运行出错 大家遇到过吗

zdcju 2012-07-10 10:00:30
vs2005 环境 在我的机子上编译能通过 运行也没问题,但是换成了另外一台机子 编译也没错误 一运行就崩溃 dll什么的肯定都没问题
应该是两台机子的编译环境不一样(也就是2005的补丁什么的不一样),大家遇到过这种情况吗?原来都没出现过这种问题,但这次不知道为什么出现了 是不是要做什么设置
...全文
172 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
Gloveing 2012-07-11
  • 打赏
  • 举报
回复
运行崩溃时的提示信息是什么?
zdcju 2012-07-11
  • 打赏
  • 举报
回复
知道怎么回事了。。。。。。
修改了 manifest 的内容就好了
原来的 manifest
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.6195' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.MFC' version='8.0.50727.6195' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
修改后的manifest

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.MFC' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
</assembly>
也就是删除了 最后那个段的内容 不知道为什么多出来那一坨。。。。。。
Good_Boy_SY 2012-07-11
  • 打赏
  • 举报
回复
静态编译
yyyyy_3 2012-07-11
  • 打赏
  • 举报
回复
重装vs2005
zdcju 2012-07-11
  • 打赏
  • 举报
回复
我把 manifest的相关检查都关了 现在不报那个错了 但是报缺少 mfc80u.dll 问了同事 这个dll不是装vc的时候附带的dll 我没用什么东西关联了这个dll呀
Ginie 2012-07-11
  • 打赏
  • 举报
回复
调试运行有没有问题
zdcju 2012-07-11
  • 打赏
  • 举报
回复
错误是 this application has failed to start because the application configuration is incorrect .Review the manifest file for possible errors.Reinstalling the application may fix this problem.For more details.please see the application event log.
应该是manifest不对 但是在其他机子上编译 应该重新生成manifest 才对
zgl7903 2012-07-11
  • 打赏
  • 举报
回复
可以用一个相同的目标机远程调试下 或者生成Dump再调试

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧