]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/main.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/main.cpp
3 // Purpose: wxEnter for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
32 #include "wx/cmdline.h"
36 // ============================================================================
37 // implementation: various entry points
38 // ============================================================================
40 // ----------------------------------------------------------------------------
41 // Platform-specific wxEntry
42 // ----------------------------------------------------------------------------
46 /* There is no command line in PalmOS. For now generate a fake arument
47 * list. Later this may be changed to reflect the application launch code
50 int argc
= args
.GetCount();
52 // +1 here for the terminating NULL
53 wxChar
**argv
= new wxChar
*[argc
+ 1];
54 for ( int i
= 0; i
< argc
; i
++ )
56 argv
[i
] = wxStrdup(args
[i
]);
59 // argv[] must be NULL-terminated
62 return wxEntry(argc
, argv
);