Code: Select all
WindowManager::getSingleton().getWindow("Chat/Wnd/Edit")->subscribeEvent(Editbox::EventTextAccepted,SendChatMessage);
This is in WinMain. SendChatMessage is defined as such
Code: Select all
bool SendChatMessage(const EventArgs& e)
Runtime exception:
Access violation reading location 0xcdcdcd08.
Any ideas?
EDIT: I can bind the event fine in Lua, so if anyone has a way to call C++ functions from Lua, that'd work too.