zoukankan      html  css  js  c++  java
  • 调用DLL函数时报告堆栈异常的解决方法

    The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.


    解决方法:

    1. VC6

      工程->设置->C/C++->工程选项

      直接把 /GZ 给去掉

    2. VC.NET

       项目属性->C/C++->代码生成->基本运行时检查->选择Default

       (这里的/RTC会检查堆栈,去掉这个标志就行了_

       


     

    技术改变世界
  • 相关阅读:
    刘志博 作业 2.15
    刘志博 作业2.6
    作业一
    2.6
    张靖悦
    java 2.15
    java 2.6
    java 1.12
    java 1.8
    java 1.3
  • 原文地址:https://www.cnblogs.com/davidgu/p/2085352.html
Copyright © 2011-2022 走看看