#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/bitmap.h"
#include "wx/intl.h"
#include "wx/list.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
+ #include "wx/bitmap.h"
+ #include "wx/confbase.h"
#endif
#include "wx/apptrait.h"
m_exitOnFrameDelete = Later;
}
-bool wxAppBase::Initialize(int argc, wxChar **argv)
+bool wxAppBase::Initialize(int& argc, wxChar **argv)
{
if ( !wxAppConsole::Initialize(argc, argv) )
return false;
- // for compatibility call the old initialization function too
- if ( !OnInitGui() )
- {
- wxAppConsole::CleanUp();
-
- return false;
- }
-
#if wxUSE_THREADS
wxPendingEventsLocker = new wxCriticalSection;
#endif