// 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
*/
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