int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow) { //Create a TestGame pointer TestGame* tGame = new TestGame (hInstance); if (!tGame->Init ()) return 0; return (tGame->Run ()); }