int main() { TestGame game; game.Run(); return 0; }
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 ()); }
int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int nCmdShow){ TestGame TestGame; return TestGame.Run(); }