// initialize wxRTTI
if ( !DoCommonPreInit() )
- {
return false;
- }
// first of all, we need an application object
// --------------------------------------------
if ( !app->Initialize(argc, argv) )
- {
return false;
- }
// remember, possibly modified (e.g. due to removal of toolkit-specific
// parameters), command line arguments in member variables
app->argc = argc;
app->argv = argv;
-
wxCallAppCleanup callAppCleanup(app.get());
- // for compatibility call the old initialization function too
- if ( !app->OnInitGui() )
- return false;
-
// common initialization after wxTheApp creation
// ---------------------------------------------
wxTRY
{
-
// app initialization
if ( !wxTheApp->CallOnInit() )
{