]>
Commit | Line | Data |
---|---|---|
1a4fe894 JS |
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 | --------------------------------------- | |
368c9c6d | 59 | ANSI is not supported, WinCE has only Unicode |
1a4fe894 JS |
60 | <time.h> |
61 | <sys\types.h> | |
62 | <assert.h> | |
63 | <signal.h> | |
64 | strdup becomes _strdup | |
65 | ||
66 | ||
67 | Always-open Items | |
68 | ----------------- | |
69 | 1. Sometimes chech all __WXMSW__ to see if __WXWINCE__ is propery managed in the #if/else | |
70 | 2. Do not use TABS, use spaces, verify each file modified. | |
71 | 3. Find in files this string "!!!!!" and look if there is some code not completed | |
72 | ||
73 | ||
74 | NOTES | |
75 | ----- | |
76 | #. /wince/dummy.cpp is needed for build the precompiled header | |
77 | #. | |
78 | ||
79 | ||
80 | ||
368c9c6d JS |
81 | =========================================================== |
82 | Koan s.a.s. - Industrial Automation and Embedded Software | |
83 | Via Pascoli, 3 / Int.1 - 24121 Bergamo - ITALIA | |
84 | www.koansoftware.com | |
85 | =========================================================== |