I am having a problem adding a mouse cursor using the following code:
Code: Select all
CEGUI::OgreCEGUIRenderer* mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow,Ogre::RENDER_QUEUE_OVERLAY,false,3000,mSceneManager);
CEGUI::System* mGUISystem = new CEGUI::System(mGUIRenderer);
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLookSkin.scheme");
mGUISystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
CEGUI::MouseCursor::getSingleton().setImage(CEGUI::System::getSingleton().getDefaultMouseCursor());
When I run my application I am getting a runtime error:
Code: Select all
First-chance exception at 0x762b42eb in DemoForSkull.exe: Microsoft C++ exception: CEGUI::GenericException at memory location 0x001fd748..
Unhandled exception at 0x762b42eb in DemoForSkull.exe: Microsoft C++ exception: CEGUI::GenericException at memory location 0x001fd748..
I am adding this code in the 'main' file when i create the scene. Can someone please tell me what is causing this error. If you need to see more code please reply and ask for that.
Thank you in advance