// Application runtime ---------------------------------------------------------------- int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR pScmdline, _In_ int iCmdshow) { Game* Application; bool result; // Create the system object Application = new Game; if(!Application) { return 0; } // Initialize and run the system object result = Application->Initialize(); if(result) { Application->Run(); } // Shutdown and release the system object Application->Shutdown(); delete Application; Application = 0; _CrtDumpMemoryLeaks(); return 0; }