应用程序初始化失败问题的解决

<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0; layout-grid:15.6pt;} div.Section1 {page:Section1;} -->

作者:朱金灿

来源: http://blog.csdn.net/clever101

 

      今天同事问我一个有点诡异的问题,就是他用VS C++2005 编译的程序在按F5 调试时总是起不来,出现“应用程序初始化失败问题”的对话框,而这个程序在我的机子上可以顺利运行。首先我在应用程序类的 InitInstance 函数设置了断点,然后按F5 调试运行,但是程序并没有进入这个函数。然后我又在应用程序类全局变量定义处设置断点,但是程序还是没有进入。我感觉这个可能是VS 2005 的安装有问题。但同事告诉我他机子上其它用VS C++ 2005 编的程序可以正常运行。思考了一会,我认为问题可能存在于我和同事的编译环境不一致上:我的编译环境是英文版VS 2005 (带sp1 ),同事的是中文版VS 2005( 不带sp1) 。我怀疑程序所依赖的动态库在我的机子上编译过,但是在同事的机子上直接使用会有问题,毕竟是在不同编译环境编译出来的。于是我让同事把所有依赖的库在他机子上都编译一遍,结果程序可以正常调试运行。后来我想起我在同事的VS2005 的输出窗口上发现在加载一个dll 出现异常退出,这证实了我的判断是对的。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

clever101

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值