2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-03-08 09:43:31 -05:00
|
|
|
// Name: init.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of global functions
|
2008-03-08 09:43:31 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-03-17 21:34:57 -04:00
|
|
|
/** @ingroup group_funcmacro_appinitterm */
|
|
|
|
//@{
|
|
|
|
|
2008-03-08 09:43:31 -05:00
|
|
|
/**
|
2008-03-17 21:34:57 -04:00
|
|
|
This function can be used to perform the initialization of wxWidgets if you
|
|
|
|
can't use the default initialization code for any reason.
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2008-03-17 21:34:57 -04:00
|
|
|
If the function returns true, the initialization was successful and the
|
|
|
|
global wxApp object ::wxTheApp has been created. Moreover, wxEntryCleanup()
|
|
|
|
must be called afterwards. If the function returns false, a catastrophic
|
|
|
|
initialization error occured and (at least the GUI part of) the library
|
|
|
|
can't be used at all.
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2008-03-17 21:34:57 -04:00
|
|
|
Notice that parameters @c argc and @c argv may be modified by this
|
|
|
|
function.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-09 08:33:59 -04:00
|
|
|
bool wxEntryStart(int& argc, wxChar** argv);
|
2008-03-17 21:34:57 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
See wxEntryStart(int&,wxChar**) for more info about this function.
|
|
|
|
|
|
|
|
This is an additional overload of wxEntryStart() provided under MSW only.
|
|
|
|
It is meant to be called with the parameters passed to WinMain().
|
|
|
|
|
|
|
|
@note Under Windows CE platform, and only there, the type of @a pCmdLine is
|
|
|
|
@c wchar_t *, otherwise it is @c char *, even in Unicode build.
|
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
bool wxEntryStart(HINSTANCE hInstance,
|
2008-03-09 08:33:59 -04:00
|
|
|
HINSTANCE hPrevInstance = NULL,
|
|
|
|
char* pCmdLine = NULL,
|
2008-03-08 09:43:31 -05:00
|
|
|
int nCmdShow = SW_SHOWNORMAL);
|
2008-03-17 21:34:57 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
Free resources allocated by a successful call to wxEntryStart().
|
|
|
|
*/
|
|
|
|
void wxEntryCleanup();
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
//@}
|
|
|
|
|