2014-06-15 1 views
0

나는 cocos2dx를 사용하여 게임을 만들었습니다.SEL_MenuHandler/menu_handler를 함수 인자 Cocos2dx로 사용하는 방법?

돌아 가기 V 2.x에서의 I이 사용 :

void Popup::addButtonWithText(const char* text, 
           CCObject* target, 
           SEL_MenuHandler selector) 

을 팝업 개체를 사용하는 동안 나는이 같은 활용 :

popup->addButtonWithText("TEXT", this, menu_selector(Class::FunctionName)); 

이제 V 3.1.1에 내가 이것을 사용하고 있습니다 :

void Popup::addButtonWithText(const char* text, 
           Object* target, 
           SEL_MenuHandler selector) 

팝업 객체를 사용하면서 이용이 I는 다음과 같음 : 0

Static_cast from void to cocos2d::SEL_MenuHandler is not allowed 

내가 같은 일을하고있는 중이 야, 왜 내가이 오류를 얻고있다 :

popup->addButtonWithText("TEXT", this, menu_selector(Class::FunctionName)); 

그러나 V 3.1.1에서 나는 오류가 무엇입니까?

답변