Sign in to follow this  

function argument number

This topic is 2395 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

This topic is 2395 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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