error C2440:“类型转换":无法从“void (__thiscall Play1::* )(int *)”转换为“cocos2d::SEL_CallFucN

转自:http://zhidao.baidu.com/link?url=VfSSkA0xfTVwNKaKh4tqW_sXlcsK-Rb16nEtQw5zaq5_306lnwJN3Kdb-rFp-r4LbhEXhPaoLPW9vVUDefvUFa

【问题】:

错误在call2函数的第三行。在actionWithTarget(this,callfuncN_selector(Play1::call3));这里,我想回调call3,取一个随机的值。可是好像因为类型问题,一直不行。求帮忙!!!

 

【回答】:

callfuncN_selector里面函数参数是规定的,一定要是CCNode*

void Play1::call3(CCNode* pSender)
{
.........

}

posted on 2013-10-24 14:00  王培  阅读(325)  评论(0编辑  收藏  举报

导航