when I register EventListeners error occured.
error info:
ESGUISys.cpp
d:\OtherProj\cegui_mk2\Demo_Win32\CEGUISys\ESGUISys.cpp(219) : error C2661: “CEGUI::SubscriberTemplate<Ret,Args>::__ctor” : 没有重载函数接受 2 个参数(no overloaded function takes 2 parameters)
with
[
Ret=bool,
Args=const CEGUI::EventArgs &
]
and
[
Ret=bool,
Args=const CEGUI::EventArgs &
]
code:
// Create
FrameWindow* loginWnd = (FrameWindow*)WindowManager::getSingleton().createWindow((utf8*)"TaharezLook/FrameWindow", (utf8*)"LoginWindow" ) ;
rootWnd->addChildWindow(loginWnd);
loginWnd->setPosition(Point(0.0f, 0.0f));
loginWnd->setMaximumSize(Size(0.65f, 0.65f));
loginWnd->setMinimumSize(Size(0.1f, 0.1f));
loginWnd->setSize(Size(0.9f, 0.5f));
loginWnd->setCloseButtonEnabled(true);
loginWnd->setText((utf8*)"CEGUI-Demo" ) ;
//====================================================================================================
void ESGUISys::registerEventListeners(void)
{
using namespace CEGUI;
Window* loginWnd = WindowManager::getSingleton().getWindow((utf8*)"LoginWindow" ) ;
loginWnd->subscribeEvent(FrameWindow::EventCloseClicked, Event::Subscriber(&ESGUISys::quitHandler,this) ) ;
//PushButton* loginButton = (PushButton*)WindowManager::getSingleton().getWindow((utf8*)"LoginButton" ) ;
//loginButton->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&ESGUISys::loginHandler, this));
//loginButton->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&ESGUISys::loginHandler,this));
}
What can I do for this ? All of CEGUI is new version .
Compile error
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Compile error
What's the prototype for loginHandler look like?
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Compile error
not loginHandler ,it is quitHandler .
I have found why.
Thanks.
I have found why.
Thanks.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 4 guests