#include "systemclass.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow) { SystemClass* System; bool result; Logger logger; // Create the system object. System = new SystemClass; // Initialize and run the system object. result = System->Initialize(); if (result) { logger.Log("System initialized", __FILE__, __LINE__); System->Run(); } // Shutdown and release the system object. System->Shutdown(); delete System; System = 0; return 0; }