I'm having a problem here:
Code: Select all
void Gui::setupEventHandlers()
{
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
wmgr.getWindow((CEGUI::utf8*)"MenuLogin/Login")
->subscribeEvent(
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber(&Gui::doLogin, this));
}
void Gui::doLogin()
{
System::log("Click!");
}I got this error:
Code: Select all
src\Gui.cpp: In member function `void Gui::setupEventHandlers()':
src\Gui.cpp:71: error: no matching function for call to `CEGUI::SubscriberTemplate<bool, const CEGUI::EventArgs&>::SubscriberTemplate(void (Gui::*)(), Gui* const)'
c:/OgreSDK/include/CEGUI/CEGUIEvent.h:166: note: candidates are: CEGUI::SubscriberTemplate<Ret, Args>::SubscriberTemplate(const CEGUI::SubscriberTemplate<Ret, Args>&) [with Ret = bool, Args = const CEGUI::EventArgs&]
c:/OgreSDK/include/CEGUI/CEGUIEvent.h:163: note: CEGUI::SubscriberTemplate<Ret, Args>::SubscriberTemplate(CEGUI::SubscriberInterface<Ret, Args>*) [with Ret = bool, Args = const CEGUI::EventArgs&]
c:/OgreSDK/include/CEGUI/CEGUIEvent.h:140: note: CEGUI::SubscriberTemplate<Ret, Args>::SubscriberTemplate(Ret (*)(Args)) [with Ret = bool, Args = const CEGUI::EventArgs&]
Process terminated with status 1 (0 minutes, 12 seconds)
I'm not that monster of C++ and I don't know the templates objects, so... I really can't understand what's wrong with my code...
any idea? tnx
