使用的版本为 cocos2d-x-2.2.5。 完全新手
按照教程生成第一个sample 可以正常运行。
从网上下载了FishingJoy_Final 这样一个项目
修改link ,以及头文件include 以后
可以正常编译, 运行以后出现了 载入的动画
点击开始以后出现 Run-Time Check Failure #0
在163 行出现错误
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.
文件是
cocos2dx\CCScheduler.cpp
我们知道 这种错误是std_call 造成的, 但是比较奇怪的是 为什么 sample 造成的, 为什么sample 不会有这个问题?sample 使用的调用方法也是默认的 __cdecl (/Gd)
具体内容请看截图。 谢谢