源码如下:
int li_ret=65;
CString ls_ret;ls_ret.Format("%d", li_ret);
MessageBox(ls_ret);执行错误提示:
The value of ESP was not properly saved across a function call.
This is usually a result of calling a function declared one caling
convention with a function pointer declared with a different caling convention.为什么?我是少了什么东西吗?—————————————————————————————————
┏━★━━◆━━★━┓
♂欢|◢CSDN◣|使♂ ▲自由保存帖子,浏览,关注检测
┃迎|◥论坛助手◤|用┃ ▲完善的CSDN客户端工具
┗━☆━━◇━━━☆┛ ▲自动添加签名......让你更快,更爽,更方便地上CSDN...
http://www.csdn.net/expert/topic/573/573604.xml
http://www.chinaok.net/csdn/csdn.zip
int li_ret=65;
CString ls_ret;ls_ret.Format("%d", li_ret);
MessageBox(ls_ret);执行错误提示:
The value of ESP was not properly saved across a function call.
This is usually a result of calling a function declared one caling
convention with a function pointer declared with a different caling convention.为什么?我是少了什么东西吗?—————————————————————————————————
┏━★━━◆━━★━┓
♂欢|◢CSDN◣|使♂ ▲自由保存帖子,浏览,关注检测
┃迎|◥论坛助手◤|用┃ ▲完善的CSDN客户端工具
┗━☆━━◇━━━☆┛ ▲自动添加签名......让你更快,更爽,更方便地上CSDN...
http://www.csdn.net/expert/topic/573/573604.xml
http://www.chinaok.net/csdn/csdn.zip
肯定不是这里出错
从错误信息来看
是指函数调用时,参数传递的顺序有错误
可能的情况是,调用了一个动态连接库中的某个函数
可是在.cpp或.h文件中声明该函数的函数指针时
函数参数的传递顺序,给遗漏了
看看有没有加"CALLBACK"如下
typedef int (CALLBACK *PFCALLBACK)(int Param1,int Param2) ;
它和AfxMessageBox()的使用有什么区别!
MessageBox() 视图类
AfxMessgeBox 在程序显示之前就可用