X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/487f2d58e9d1c28cc54e9800affd91623adadac7..08469b1f18dbf44abd5400ddf83a7c0e1bd65af1:/include/wx/init.h diff --git a/include/wx/init.h b/include/wx/init.h index 5824719e26..7cdcda57f8 100644 --- a/include/wx/init.h +++ b/include/wx/init.h @@ -1,11 +1,11 @@ /////////////////////////////////////////////////////////////////////////////// // Name: wx/init.h -// Purpose: wxWindows initialization and finalization functions +// Purpose: wxWidgets initialization and finalization functions // Author: Vadim Zeitlin // Modified by: // Created: 29.06.2003 // RCS-ID: $Id$ -// Copyright: (c) 2003 Vadim Zeitlin +// Copyright: (c) 2003 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -19,7 +19,7 @@ // ---------------------------------------------------------------------------- // do common initialization, return true if ok (in this case wxEntryCleanup -// must be called later), otherwise the program can't use wxWindows at all +// must be called later), otherwise the program can't use wxWidgets at all // // this function also creates wxTheApp as a side effect, if IMPLEMENT_APP // hadn't been used a dummy default application object is created @@ -72,7 +72,10 @@ class WXDLLIMPEXP_BASE wxInitializer { public: // initialize the library - wxInitializer() { m_ok = wxInitialize(); } + wxInitializer(int argc = 0, wxChar **argv = NULL) + { + m_ok = wxInitialize(argc, argv); + } // has the initialization been successful? (explicit test) bool IsOk() const { return m_ok; }