Sign in to follow this  
Jarwulf

function argument number

Recommended Posts

Jarwulf    223
I've looked around but I'm not really sure what this error means
[code]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][code]

'CEGUI::SubscriberSlot::SubscriberSlot' : no overloaded function takes 2 arguments[/code]


Does it mean that the declaration in the header file takes a different number of arguments? The basic structure of the code is intact from a working example so I don't see how that could be.

Share this post


Link to post
Share on other sites
Googabonze    100
That just simply means that either...

Wherever you called [color=#008800][font=CourierNew, monospace][size=2]CEGUI::SubscriberSlot::SubscriberSlot [/size][/font][/color][font=CourierNew, monospace][size=2]you didn't enter the same amount of arguments that the original function prototype has.[/size][/font]
[font=CourierNew, monospace][size=2]
[/size][/font]
[font=CourierNew, monospace][size=2]Or generally anything along those lines... If i misunderstood anything, please supply more detail. [/size][/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this