+ wxTheApp = (wxApp*) test_app;
+ }
+
+ if (!wxTheApp)
+ {
+ printf( "wxWindows error: wxTheApp == NULL\n" );
+ return 0;
+ }
+
+ wxTheApp->argc = argc;
+ wxTheApp->argv = argv;
+
+ char name[200];
+ strcpy( name, argv[0] );
+ strcpy( name, wxFileNameFromPath(name) );
+ wxStripExtension( name );
+ wxTheApp->SetAppName( name );