int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow) { System* system; bool result; // Create the system object. system = new System; if (!system) { return 0; } // Initialize and run the system object. result = system->Initialize(); if (result) { system->Run(); } // Shutdown and release the system object. system->Shutdown(); delete system; system = 0; return 0; }
int _tmain(int argc, _TCHAR* argv[]) { System* system = new System; if(system->Initialize()) system->Run(); system->Shutdown(); delete system; system = 0; return 0; }
int main() { System* engine = new System("3DS Loader and Renderer"); if (!engine->Initialize()) { printf("Press any key to shutdown\n"); _getch(); return -1; } engine->Run(); engine->Shutdown(); return 0; }