]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/main.cpp
fixing exports
[wxWidgets.git] / src / palmos / main.cpp
index aaf6f0ab519c097482c540ad4c8f0ef360495544..2c4f957771865b993d99bc6144b438ac1df699a9 100644 (file)
     #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
@@ -45,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