fpc/rtl/wince
2007-06-22 18:02:26 +00:00
..
wininc * removed non existent constants on wince. 2007-06-22 18:02:26 +00:00
classes.pp + revive generics based tfplist/tstringlist implementation for generics testing; build with FPC_TESTGENERICS 2007-03-25 19:19:04 +00:00
dos.pp * fixed compilation on CE 2006-10-31 22:46:09 +00:00
dynlibs.inc * varutils,variants,dynlibs units are built now for wince. 2005-10-07 16:45:48 +00:00
gx.pp + Added GAPI header translation by Nikolay Nikolov. 2007-03-10 20:03:44 +00:00
Makefile * re-added darwin/ppc64 support (please use up-to-date fpcmake) 2007-03-24 17:26:10 +00:00
Makefile.fpc + Added GAPI header translation by Nikolay Nikolov. 2007-03-10 20:03:44 +00:00
messages.pp + Added SysUtils, Classes, Messages units for WinCE. 2005-09-02 12:03:22 +00:00
readme.txt * readme.txt changes. 2005-10-19 07:21:58 +00:00
system.pp * Fixed integer to single conversion for arm-wince. It fixes tw8055.pp test. 2007-06-21 14:08:58 +00:00
sysutils.pp + FileTruncate allows 64-bit parameter 2007-03-05 23:47:10 +00:00
varutils.pp * varutils,variants,dynlibs units are built now for wince. 2005-10-07 16:45:48 +00:00
windows.pp + {$PACKSET 1} for windows units to improve delphi compatibility 2007-06-16 16:57:31 +00:00
winres.inc * fixed i386-wince support. WinCE API functions are cdecl. 2006-12-29 20:49:03 +00:00
winsock2.pp Put every {$smarlink on} inside an {$ifndef NO_SMART_link} condition. 2007-05-16 11:26:06 +00:00
winsock.pp * fixed i386-wince support. WinCE API functions are cdecl. 2006-12-29 20:49:03 +00:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

WinCE port
==========

WinCE port is quite complete and usable. The port was started and maintained by Yury Sidorov. Oliver (Oro06) ported WinCE API headers.

Status
------
* The 2.1.x compiler has compiler support WinCE.
* ARM and i386 (old WinCE emulator) CPUs are supported.
* The following platforms are supported: 
  * Pocket PC 2002  WinCE version: 3.0 
  * Pocket PC 2003  WinCE version: 4.20 
  * Pocket PC 2003 Second Edition  WinCE version: 4.21 
* Base units are complete.
* Windows unit is almost complete. Delphi compatible declarations is not ready.

Building
--------
* You need cross binutils for arm-wince, get them fromftp://ftp.freepascal.org/pub/fpc/contrib/cross/arm-wince-binutils.zip for Win32.
* Extract them to some dir in the path on your machine.
* Get the 2.1 source repository from SVN: http://www.freepascal.org/develop.html#svn
* Go to fpc/compiler and execute: 
  make cycle CPU_TARGET=arm OS_TARGET=wince

You should end with the units compiled to fpc/rtl/units/arm-wince and a ppccrossarm.exe in fpc/compiler. Copy them to locations fitting your fpc installation.

WinCE port notes
----------------
* chdir procedure always produces an error (WinCE does not support setting of current directory).
* All file/dir paths must be absolute (started with \).
* WinCE is unicode OS. All string parameters to API calls must be PWideChar.
* WinCE does not have support for environment strings.
* WinCE does not have support for console applications by default. But you can install console support by yourself. Please note that FPC creates GUI applications for WinCE target by default. To create console application you should use -WC compiler switch or put {$APPTYPE CONSOLE} directive to source code.<br>To enable console in WinCE install one of the following programs:

  - PocketCMD by SymbolicTools. It is recommended solution. Get it here: http://www.symbolictools.de/public/pocketconsole/applications/PocketCMD

  - PPC Command Shell from Microsoft Windows Mobile Developer Power Toys. Get it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=74473fd6-1dcc-47aa-ab28-6a2b006edfe9&displaylang=en

PPC Command Shell have less features than PocketCMD. Also it have some issues. One of them - a new console window is opened even if an application is started from a console command prompt.

Links
-----
* WinCE Port page at Free Pascal Wiki: http://www.freepascal.org/wiki/index.php/WinCE_port
* Useful WinCE info: http://www.rainer-keuchel.de/documents.html

Contacts
--------
Write any questions regarding WinCE port to Yury Sidorov yury_sidorov@mail.ru