]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/main.cpp
don't remove handlers from wxPendingEvents list, they now do it themselves when they...
[wxWidgets.git] / src / palmos / main.cpp
index 551f447306dbbd52d9639ece2d1bfd5e12322f33..2c4f957771865b993d99bc6144b438ac1df699a9 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
     #pragma hdrstop
 #endif
 
-#include "wx/event.h"
-#include "wx/app.h"
+#ifndef WX_PRECOMP
+    #include "wx/event.h"
+    #include "wx/app.h"
+#endif //WX_PRECOMP
+
 #include "wx/cmdline.h"
 
 #if wxUSE_GUI
@@ -49,12 +48,12 @@ int wxEntry()
      */
     wxArrayString args;
     int argc = args.GetCount();
-
     // +1 here for the terminating NULL
     wxChar **argv = new wxChar *[argc + 1];
     for ( int i = 0; i < argc; i++ )
     {
-        argv[i] = wxStrdup(args[i]);
+        //argv[i] = wxStrdup(args[i]);
+        argv[i] = wxStrdup(wxConvLibc.cMB2WX(args[i]));
     }
 
     // argv[] must be NULL-terminated