www.pudn.com > 32709.zip > main.cpp


/*************************************************** 
 * Developer: Clinton Jon Selke                    * 
 *   Version: Totally FreeWare (Do what you will)  * 
 *   Section: Main (Application kicks off here)    * 
 ***************************************************/ 
 
#include  
#include "application.h" 
#include "winexception.h" 
 
int main() { 
    try { 
        // Create application object 
        Application a; 
         
        // Run application and return error code when done 
        return a.run(); 
    } catch (WinException e) { 
        e.doMessageBox(); 
        return -1; 
    } catch (...) { 
        MessageBox(0, "Unknown exception occured.", "Exception", MB_ICONEXCLAMATION | MB_OK); 
        return -2; 
    } 
}