I'm playing around with CEGUI these days and I already used CEGUI in another test-program without a problem but now I've encountered this problem:
Is use this piece of code in my createScene() method in an Ogre3D application:
Code: Select all
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
wmgr.getWindow((CEGUI::utf8*)"QuitButton")
->subscribeEvent(CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber(&ActionBar::handleQuit, this));
and I get this error when compiling the program:
Code: Select all
d:\Ogre\ogrenew\Samples\MapEditor\MapEditor.cpp(62):
error C2661: 'CEGUI::SubscriberTemplate<Ret,Args>::__ctor' :
no overloaded function takes 2 arguments
with
[
Ret=bool,
Args=const CEGUI::EventArgs &
]
and
[
Ret=bool,
Args=const CEGUI::EventArgs &
]
Very wierd, cause I used the exact line of code in another program before (also in the createScene method).
I fear I don't have enough experience with CEGUI to know what's going on, hence the question
Thanks in advance!