looking at the demo's etc
added a exit button on my new app and it has given me some errors on compile
any ideas on how to fix this heres the button code
Code: Select all
PushButton* btn = static_cast<PushButton*>(winMgr.createWindow("TaharezLook/Button", "Quit"));
sheet->addChildWindow(btn);
btn->setMaximumSize(Size(1.0f, 1.0f));
btn->setPosition(Point(0.001f, 0.95f));
btn->setSize(Size(0.1f, 0.035f));
btn->setText("Exit");
subscribeEvent(PushButton::EventClicked, Event::Subscriber(&main::handleQuit, this));
and heres the errors
error C2653: 'SDL_main' : is not a class or namespace name
error C2065: 'handleQuit' : undeclared identifier
error C2673: 'SDL_main' : global functions do not have 'this' pointers
error C3861: 'subscribeEvent': identifier not found, even with argument-dependent lookup
TIA