Beispiel #1
0
INT WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
    // Start Win32++
    CMDIFrameApp MyApp;

    // Run the application
    return MyApp.Run();
}
Beispiel #2
0
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;
    }
}