title: callfunc in cocos2d-x
body: <p>In cocos2d-x, the following piece of code is supposed to run the callback function after a delay. What do I need to do to fix the error?</p>
  
  <pre><code>bool LoadingLevelScreen::initialise() {
  
          // set up the time delay
      CCDelayTime *delayAction = CCDelayTime::actionWithDuration(0.5f);
  
      // perform the selector call
      CCCallFunc *callSelectorAction = CCCallFunc::actionWithTarget( 
          this, callfunc_selector( LoadingLevelScreen::menuCallbackStart ) );
  
      // run the action
      this-&gt;runAction( CCSequence::actions(
          delayAction, callSelectorAction, NULL ) );
  }
  
  void LoadingLevelScreen::menuCallbackStart(CCObject * pSender)
  {
  }
  </code></pre>
  
  <p>Compiler Error:</p>
  
  <pre><code>error C2440: 'type cast' : 
  cannot convert from 'void (__thiscall LoadingLevelScreen::* )(cocos2d::CCObject *)' 
  to 'cocos2d::SEL_CallFunc'
  Pointers to members have different representations; cannot cast between them
  </code></pre>