Jonas Maebe cb14d8a9d4 Merged revisions 11233 via svnmerge from преди 17 години
..
wininc c2e48b7eec Merged revisions 10961-10965,10970-10971 via svnmerge from преди 17 години
Makefile cb14d8a9d4 Merged revisions 11233 via svnmerge from преди 17 години
Makefile.fpc 4d82aff9d5 Merged revisions 10897-10898,10900-10903,10906 via svnmerge from преди 17 години
classes.pp aec09856da Merged revisions 8468 via svnmerge from преди 18 години
dos.pp c3d86250f6 Merged revisions 10105,10107-10110,10115,10128-10130,10133,10137-10138,10140-10146,10148-10153,10156-10157 via svnmerge from преди 17 години
dynlibs.inc aec09856da Merged revisions 8468 via svnmerge from преди 18 години
messages.pp aec09856da Merged revisions 8468 via svnmerge from преди 18 години
readme.txt aec09856da Merged revisions 8468 via svnmerge from преди 18 години
system.pp 378294ecf1 Merged revisions 10725,10732 via svnmerge from преди 17 години
sysutils.pp 378294ecf1 Merged revisions 10725,10732 via svnmerge from преди 17 години
varutils.pp aec09856da Merged revisions 8468 via svnmerge from преди 18 години
windows.pp 4d82aff9d5 Merged revisions 10897-10898,10900-10903,10906 via svnmerge from преди 17 години
winres.inc ff37ef8786 * fixed i386-wince support. WinCE API functions are cdecl. преди 19 години
winsock.pp be1dde63d7 Merged revisions 9032-9033,9035,9042,9044,9046,9048,9059,9071,9074,9076-9082,9084,9086,9088-9090,9095-9097,9102,9108,9111-9112,9114,9132-9133,9135,9139,9160,9185,9203,9205,9211-9212,9236-9238,9260,9262,9266,9269-9272,9276-9278,9295,9307-9308,9310,9312,9316,9322,9337,9340,9343-9344,9359,9373-9375,9384,9387-9388,9396-9397,9399,9401-9403,9430-9431,9434,9438-9439,9450-9456,9459-9463,9466-9469,9472-9473,9476-9477,9480-9481,9483,9491-9492,9499-9500,9502-9503,9505-9506,9508,9511-9514,9529,9536,9539,9544-9552,9555,9561-9562,9566-9568,9571,9573-9574,9576-9577,9579,9583,9586-9587,9595-9598,9600 via svnmerge from преди 17 години
winsock2.pp 4b3a8ebff1 Merged revisions 7966 via svnmerge from преди 18 години

readme.txt

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.
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 [email protected]