// Author: Julian Smart
// Modified by:
// Created: 04/01/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#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
free(argv[i]);
}
- delete [] argv;
- argv = NULL;
+ wxDELETEA(argv);
argc = 0;
}
// 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