function argument number
Posted: Wed Jun 01, 2011 02:17
hi, I'm currently attempting to lay the framework for a UI which is a lot bigger than anything I've done before. I've run into some problems. I have a file called UImanager.cc which handles all the loading of window layouts and button registrations. One of the first errors I get when attempting to compile is this
As you can see there is no CEGUI::SubscriberSlot::SubscriberSlot' in sight and I don't recall messing with the function directly and introducing the wrong number of arguments so any ideas what could be amiss?
Thanks alot
Code: Select all
void UIManager::UIMenuReg()
{
CEGUI::Window* pMainWnd = CEGUI::WindowManager::getSingleton().getWindow("AOF_GUI");//sequence?
OgreFramework::getSingletonPtr()->m_pGUISystem->setGUISheet(pMainWnd);
CEGUI::PushButton* button = (CEGUI::PushButton*)pMainWnd->getChild("BExit");
/*error right here!!! */ button->subscribeEvent(CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber(&MenuState::onExitButton, this));
button = (CEGUI::PushButton*)pMainWnd->getChild("BEnter");
button->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&MenuState::onEnterButton, this));
}
Code: Select all
1>c:\documents and settings\minion\my documents\visual studio 2008\projects\ogregamelev(100810)\ogregamelev(100810)\uimanager.cc(52) : error C2661: 'CEGUI::SubscriberSlot::SubscriberSlot' : no overloaded function takes 2 arguments
As you can see there is no CEGUI::SubscriberSlot::SubscriberSlot' in sight and I don't recall messing with the function directly and introducing the wrong number of arguments so any ideas what could be amiss?
Thanks alot