INT WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int) { // Start Win32++ CMDIFrameApp MyApp; // Run the application return MyApp.Run(); }
int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { // Start Win32++ CMDIFrameApp theApp; // Run the application return theApp.Run(); } // catch all exceptions inherited from std::exception catch (std::exception &e) { // Process the exception and quit e.what(); return -1; } }