]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/main.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/main.cpp
3 // Purpose: wxEnter for Palm OS
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
33 #include "wx/cmdline.h"
37 // ============================================================================
38 // implementation: various entry points
39 // ============================================================================
41 // ----------------------------------------------------------------------------
42 // Platform-specific wxEntry
43 // ----------------------------------------------------------------------------
47 /* There is no command line in PalmOS. For now generate a fake arument
48 * list. Later this may be changed to reflect the application launch code
51 int argc
= args
.GetCount();
53 // +1 here for the terminating NULL
54 wxChar
**argv
= new wxChar
*[argc
+ 1];
55 for ( int i
= 0; i
< argc
; i
++ )
57 argv
[i
] = wxStrdup(args
[i
]);
60 // argv[] must be NULL-terminated
63 return wxEntry(argc
, argv
);