// initialize the library (may be called as many times as needed, but each
// call to wxInitialize() must be matched by wxUninitialize())
extern bool WXDLLIMPEXP_BASE wxInitialize(int argc = 0, wxChar **argv = NULL);
+#if wxUSE_UNICODE
+extern bool WXDLLIMPEXP_BASE wxInitialize(int argc = 0, char **argv = NULL);
+#endif
// clean up -- the library can't be used any more after the last call to
// wxUninitialize()
m_ok = wxInitialize(argc, argv);
}
+#if wxUSE_UNICODE
+ wxInitializer(int argc = 0, char **argv = NULL)
+ {
+ m_ok = wxInitialize(argc, argv);
+ }
+#endif // wxUSE_UNICODE
+
// has the initialization been successful? (explicit test)
bool IsOk() const { return m_ok; }
return wxEntryStart(argc, argv);
}
+#if wxUSE_UNICODE
+bool wxInitialize(int argc, char **argv)
+{
+ wxCRIT_SECT_LOCKER(lockInit, gs_initData.csInit);
+
+ if ( gs_initData.nInitCount++ )
+ {
+ // already initialized
+ return true;
+ }
+
+ return wxEntryStart(argc, argv);
+}
+#endif // wxUSE_UNICODE
+
void wxUninitialize()
{
wxCRIT_SECT_LOCKER(lockInit, gs_initData.csInit);