zoukankan      html  css  js  c++  java
  • 应用程序初始化失败问题的解决

    <!-- /* 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 出现异常退出,这证实了我的判断是对的。

  • 相关阅读:
    opengl中的Floatbuffer和IntBuffer与java中数据的存储方式不同的解决方法,编辑一个自己的BufferUtil工具类
    android程序与java程序的差别。
    android的json解析
    java数组转list,list转数组。
    java中字符串常量,堆栈的区别和字符串函数intern(),String s=new String(“abc”)中abc在内存的分配
    AsyncTask学习
    关于自定义拦截器配置,及拦截器的作用范围
    struts2中的文件上传和文件下载
    Struts2的配置及入门案例
    Action中动态方法的调用 Action中通配符的使用 Result的配置
  • 原文地址:https://www.cnblogs.com/lanzhi/p/6471144.html
Copyright © 2011-2022 走看看