错误 1 error C2440:“类型转换”: 无法从“void (__thiscall GameLayer::* )(cocos2d::CCObject *)”转换为“cocos2d::SEL_C
2014-01-16 11:21
731 查看
解决办法:这个竟然是由于版本不同,继承关系改变的缘故,无语!!!
把回调函数的cocos2d::CCObject* 换成 cocos2d::CCNode* 即可
相关文章推荐
- cocos2d-x编译问题集合 error C2440: “类型转换”: 无法从“void (__thiscall xx::* )(void)”转换为“cocos2d::SEL_CallFuncN”
- cocos2d-x 编译问题集合之error C2440: “类型转换”: 无法从“void (__thiscall ::* )(void)”转换为“
- cocos2dx编译错误:无法从“void (__thiscall xx::* )(void)”转换为“cocos2d::SEL_CallFuncN”
- cocos2d-x3.2中error C2440: “类型转换”: 无法从“void (__thiscall xx::* )(void)”转换为
- cocos2dx 无法从“void (__thiscall MyClass::* )(cocos2d::CCNode *)”转换为“cocos2d::SEL_MenuHandler”
- cocos2d-x编译问题集合之error C2440: “类型转换”: 无法从“void (__thiscall ::* )(void)”转换为“
- cocos2d-x编译问题集合之error C2440: “类型转换”: 无法从“void (__thiscall ::* )(void)”转换为“
- cocos2d-x编译问题集合之error C2440: “类型转换”: 无法从“void (__thiscall ::* )(void)”转换为“
- 无法从“void (__thiscall XXX::* )(void)”转换为“cocos2d::SEL_SCHEDUL 错误总结
- cocos2d-x编译问题集合之error C2440: “类型转换”: 无法从“void (__thiscall ::* )(void)”转换为“
- cocos2d-x编译问题集合之error C2440: “类型转换”: 无法从“void (__thiscall ::* )(void)”转换为“
- 关于《无法从“void (__thiscall HelloWorld::* )(void)”转换为“cocos2d::SEL_MenuHandler”》的修改
- error C2440: “static_cast”: 无法从“void (__thiscall CXXDlg* )(void)”转换为“LRESULT (__thiscall CWnd:的错误
- 错误 1 error C2440: “static_cast”: 无法从“void (__thiscall CTCPDlg::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)” 解决问题
- error C2440:“类型转换":无法从“void (__thiscall Play1::* )(int *)”转换为“cocos2d::SEL_CallFucN
- 【cocos2dx】无法从“void (__thiscall xx::* )(void)”转换为“cocos2d::SEL_SCHEDULE”
- error C2440: “static_cast”: 无法从“void (__thiscall CVCadView::* )(int)”转换为“void (__thiscall CCmdTarget
- 错误1无法将类型“void”隐式转换为“object”
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440: “static_cast”: 无法从“void (__thiscall CChatDlg::* )(WPARAM,LPARAM)”转换为“LRE