]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/init.h
Corrected library association
[wxWidgets.git] / interface / wx / init.h
CommitLineData
23324ae1 1/////////////////////////////////////////////////////////////////////////////
7c913512 2// Name: init.h
e54c96f1 3// Purpose: interface of global functions
7c913512
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
8cd06fb5
BP
9/** @ingroup group_funcmacro_appinitterm */
10//@{
11
7c913512 12/**
8cd06fb5
BP
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.
23324ae1 15
8cd06fb5
BP
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
20 can't be used at all.
23324ae1 21
8cd06fb5
BP
22 Notice that parameters @c argc and @c argv may be modified by this
23 function.
027c1c27
BP
24
25 @header{wx/init.h}
23324ae1 26*/
4cc4bfaf 27bool wxEntryStart(int& argc, wxChar** argv);
8cd06fb5
BP
28
29/**
30 See wxEntryStart(int&,wxChar**) for more info about this function.
31
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().
34
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.
027c1c27
BP
37
38 @header{wx/init.h}
8cd06fb5 39*/
7c913512 40bool wxEntryStart(HINSTANCE hInstance,
4cc4bfaf
FM
41 HINSTANCE hPrevInstance = NULL,
42 char* pCmdLine = NULL,
7c913512 43 int nCmdShow = SW_SHOWNORMAL);
8cd06fb5
BP
44
45/**
46 Free resources allocated by a successful call to wxEntryStart().
027c1c27
BP
47
48 @header{wx/init.h}
8cd06fb5
BP
49*/
50void wxEntryCleanup();
51
23324ae1
FM
52//@}
53