weixin_47013809 2021-08-17 10:41 采纳率: 0%
浏览 436
已结题

关于#c++#的问题:双方约定__stdcall。但回调函数结束后报错:un-Time Check Failure #0 - The value of ESP

对方调用我的回调函数,我方的回调函数触发被执行,当结束回调函数退出回调函数时报错:Run-Time Check Failure #0 - 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。
说明:对方用MFC,调用约定是__stdcall.我方(被调用者)也是用__stdcall.
我方用的软件是VS2013
如图:
img

img

img

img

  • 写回答

9条回答 默认 最新

  • shifenglv 2021-08-17 12:30
    关注

    虽然都是stdcall ,但是C和C++对函数名的修饰是不一样的。

    评论

报告相同问题?

问题事件

  • 系统已结题 8月25日
  • 创建了问题 8月17日