]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/init.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
9 /** @ingroup group_funcmacro_appinitterm */
13 This function can be used to perform the initialization of wxWidgets if you
14 can't use the default initialization code for any reason.
16 If the function returns true, the initialization was successful and the
17 global wxApp object ::wxTheApp has been created. Moreover, wxEntryCleanup()
18 must be called afterwards. If the function returns false, a catastrophic
19 initialization error occured and (at least the GUI part of) the library
22 Notice that parameters @c argc and @c argv may be modified by this
27 bool wxEntryStart(int& argc
, wxChar
** argv
);
30 See wxEntryStart(int&,wxChar**) for more info about this function.
32 This is an additional overload of wxEntryStart() provided under MSW only.
33 It is meant to be called with the parameters passed to WinMain().
35 @note Under Windows CE platform, and only there, the type of @a pCmdLine is
36 @c wchar_t *, otherwise it is @c char *, even in Unicode build.
40 bool wxEntryStart(HINSTANCE hInstance
,
41 HINSTANCE hPrevInstance
= NULL
,
42 char* pCmdLine
= NULL
,
43 int nCmdShow
= SW_SHOWNORMAL
);
46 Free resources allocated by a successful call to wxEntryStart().
50 void wxEntryCleanup();