]> git.saurik.com Git - wxWidgets.git/blob - docs/msw/wince/porting.txt
Added Marco's first WinCE files
[wxWidgets.git] / docs / msw / wince / porting.txt
1 ==========================================================
2 wxWindows porting for Windows CE (TM)
3 ==========================================================
4 Author : Marco Cavallini
5 ==========================================================
6
7 What I've done:
8
9 1. This porting will use much files from MSW
10
11 2. Large use of #ifdef __WXWINCE__ into common and msw include files
12
13 3. As first
14 - create wxwindows\src\wince
15 - create wxwindows\include\wx\wince
16 for files not shared with MSW
17
18 4. Then create two eVC projects
19 - wxBaseCE
20 - wxWinCE
21
22 5. Search #ifdef __WXMSW__ and add the #ifdef __WXWINCE__ case in include files.
23
24 6. Start including CPP and H file into these projects and compile
25 - See errors and solve.
26
27 7. To be continued...
28
29 ==========================================================
30
31
32 New Macro Definitions
33 ---------------------
34 This identifies WinCE environment and should not be used
35 #if !defined(_WIN32_WCE)
36 #ifdef(_WIN32_WCE)
37
38 This identifies wxWinCE environment and can be used
39 #if !defined (__WXWINCE__)
40 #ifdef (__WXWINCE__)
41
42
43
44 New Paths
45 ---------
46 \wxWindows\include\wince
47 \wxWindows\src\wince
48
49
50 Compiler options
51 ----------------
52 Add
53 1. Tools-Option-Directories-Include = ...yourpath...\wx\wxWindows\include
54 2. Tools-Option-Directories-Libraries = ...yourpath...\wx\wxWindows\lib
55
56
57 Incompatibility stuff & Missing headers
58 ---------------------------------------
59 <time.h>
60 <sys\types.h>
61 <assert.h>
62 <signal.h>
63 strdup becomes _strdup
64
65
66 Always-open Items
67 -----------------
68 1. Sometimes chech all __WXMSW__ to see if __WXWINCE__ is propery managed in the #if/else
69 2. Do not use TABS, use spaces, verify each file modified.
70 3. Find in files this string "!!!!!" and look if there is some code not completed
71
72
73 NOTES
74 -----
75 #. /wince/dummy.cpp is needed for build the precompiled header
76 #.
77
78
79
80 ==========================================================
81 Koan s.a.s. - Industrial Automation and Embedded Software
82 Via Pascoli, 3 / Int.1 - 24121 Bergamo - ITALIA
83 Tel./Fax (++39) +35 - 255.235 - www.koansoftware.com
84 ==========================================================