make it possible to use wxConsoleApp in GUI build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-07-31 10:11:28 +00:00
parent b6e20cff8c
commit e8e1149bd7
2 changed files with 10 additions and 9 deletions

View File

@@ -245,7 +245,11 @@ bool wxEntryStart(int& argc, wxChar **argv)
if ( fnCreate )
{
// he did, try to create the custom wxApp object
app.Set((*fnCreate)());
//
// NB: cast is needed because for the backwards-compatibility
// reasons wxTheApp is really a wxApp and not just
// wxAppConsole...
app.Set((wxApp*)(*fnCreate)());
}
}