int main(int argc, char *argv[]) { Q_UNUSED(argc); Q_UNUSED(argv); cout << "Create gameApp" << endl; GameApp * game = new GameApp(); cout << "Start gameApp" << endl; game->startGame(); cout << "Finish gameApp" << endl; return 0; }
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) { try { // Set up to support Chinese path setlocale(LC_ALL,"Chinese-simplified"); GameApp *app = GameApp::getSingletonPtr(); app->startGame(); } catch( Ogre::Exception& e ) { MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL); } return 0; }