]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/main.cpp
Removed no longer needed code to fix combo sizing (causes layout problems on Windows)
[wxWidgets.git] / src / palmos / main.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/main.cpp
ffecfa5a 3// Purpose: wxEnter for Palm OS
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/07/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
ffecfa5a
JS
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#include "wx/event.h"
28#include "wx/app.h"
29#include "wx/cmdline.h"
30
31#if wxUSE_GUI
32
33// ============================================================================
34// implementation: various entry points
35// ============================================================================
36
37// ----------------------------------------------------------------------------
38// Platform-specific wxEntry
39// ----------------------------------------------------------------------------
40
41int wxEntry()
42{
e2731512 43 /* There is no command line in PalmOS. For now generate a fake arument
ffecfa5a
JS
44 * list. Later this may be changed to reflect the application launch code
45 */
46 wxArrayString args;
47 int argc = args.GetCount();
48
49 // +1 here for the terminating NULL
50 wxChar **argv = new wxChar *[argc + 1];
51 for ( int i = 0; i < argc; i++ )
52 {
53 argv[i] = wxStrdup(args[i]);
54 }
55
56 // argv[] must be NULL-terminated
57 argv[argc] = NULL;
e2731512 58
ffecfa5a
JS
59 return wxEntry(argc, argv);
60}
61
62#endif // wxUSE_GUI