#endif // wxUSE_BASE
-#if wxUSE_GUI && defined(__WXMSW__)
+#if wxUSE_GUI
namespace
{
argv = new wxChar *[argc + 1];
for ( int i = 0; i < argc; i++ )
{
- argv[i] = wxStrdup(args[i].wx_str());
+ argv[i] = wxStrdup(args[i].t_str());
}
// argv[] must be NULL-terminated
// remember the parameters Windows gave us
wxSetInstance(hInstance);
+#ifdef __WXMSW__
wxApp::m_nCmdShow = nCmdShow;
+#endif
// parse the command line: we can't use pCmdLine in Unicode build so it is
// simpler to never use it at all (this also results in a more correct
return wxEntry(wxArgs.argc, wxArgs.argv);
}
-#endif // wxUSE_GUI && __WXMSW__
+#endif // wxUSE_GUI
// ----------------------------------------------------------------------------
// global HINSTANCE