MFC开发遇到的异常Run-Time Check Failure #0

来源:互联网 发布:美工云网站 编辑:程序博客网 时间:2024/05/13 21:27

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.

追踪进去之后发现是


回调函数

typedef  void (*CSNOTIFYFUNC)(void* pOwner, int command, LPVOID lParam);两个地方没有写一致

修改为一致的方法为,要么都带CallBack要么不带CallBack;


0 0
原创粉丝点击