Code not compile in windows, but works on all other platforms


Hi, I have the following code that works on mac, ios and android, but it not works on windows

Error   10  error C2440: 'type cast' : cannot convert from 'void (__thiscall HelloWorld::* )(void)' to 'cocos2d::SEL_CallFuncN' d:\mingw\msys\1.0\home\fabiopcwin8\cocos2d-x-2.2.1\projects\snakemac\classes\helloworldscene.cpp    199 1   SnakeMac

This error is about the code below

CCFiniteTimeAction* acao1 = CCCallFuncN::create(this,callfuncN_selector(HelloWorld::countForBegin));

Why this is not working on windows? It works on all other platforms.


The method HelloWorld::countForBegin must accept a CCNode as parameter.


Hi, I change the following code




It works now.