schedule_selector dont compile on win32

schedule_selector dont compile on win32
0.0 0


the following code compiles fine on Iphone/Android , but not on win32

this->schedule(schedule_selector(Container::moveEndCallback), .7f);

Container is inherited form cocos2d::CCLayer , so should implement SelectorProtocol

Does I have to do a cast or something ?



I work with Nico on this project.

Some details on the error :

Prototype of Container and moveEndCallback :

class Container : public cocos2d::CCLayer
    // ...snip...

    void moveEndCallback();

    // ...snip...

The error on VS2008 (in french) :

6>..\Classes\Container.cpp : error C2471: impossible de mettre à jour la base de données 'd:\pnp-cocos2d\src\cocos2dx\picandpuzz\win32\release.win32\vc90.pdb' du programme
6>..\Classes\Container.cpp(765) : error C2440: 'cast de type' : impossible de convertir de 'void (__thiscall Container::* )(void)' en 'cocos2d::SEL_SCHEDULE'
6>        Les pointeurs vers des membres ont des représentations différentes ; impossible d'effectuer un cast entre eux

The project compile fine on Xcode 4.2 for iOS SDK 5.0 and Android NDK 7.

We use cocos2d-1.0.1-x-0.10.0.

Thank you in advance for your help.


looks like giving a ccTime arguments fix the problem

I dont know why it compiles with XCode…

void Container::moveEndCallback(ccTime f)