+ return -1;
+
+ return 0;
+}
+
+int wxEntryInitGui()
+{
+ int retValue = 0;
+
+ // GUI-specific initialization, such as creating an app context.
+ if (!wxTheApp->OnInitGui())
+ retValue = -1;
+
+ return retValue;
+}
+
+void wxEntryCleanup()
+{
+ // So dialog boxes aren't used for further messages
+ delete wxLog::SetActiveTarget(new wxLogStderr);
+
+ // flush the logged messages if any
+ wxLog *pLog = wxLog::GetActiveTarget();
+ if ( pLog != NULL && pLog->HasPendingMessages() )
+ pLog->Flush();
+
+ wxApp::CleanUp();
+}
+
+int wxEntry( int argc, char *argv[] )
+{
+ int retValue = 0;
+
+ retValue = wxEntryStart( argc, argv );
+ if (retValue) return retValue;