Jump to content
  • Advertisement
Sign in to follow this  
Jarwulf

function argument number

This topic is 2609 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
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));
}


'CEGUI::SubscriberSlot::SubscriberSlot' : no overloaded function takes 2 arguments



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
Advertisement
That just simply means that either...

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!