Difference between revisions of "WinCE port"

From Free Pascal wiki
Jump to navigationJump to search
Line 33: Line 33:
 
* Useful WinCE info http://www.rainer-keuchel.de/documents.html
 
* Useful WinCE info http://www.rainer-keuchel.de/documents.html
 
* Standalone Pocket PC device emulator from Microsoft. It emulates ARM CPU. It is beta currently, but stable. http://msdn.microsoft.com/mobility/windowsmobile/downloads/emulatorpreview/default.aspx
 
* Standalone Pocket PC device emulator from Microsoft. It emulates ARM CPU. It is beta currently, but stable. http://msdn.microsoft.com/mobility/windowsmobile/downloads/emulatorpreview/default.aspx
 +
* Mamaich Pocket PC port of GCC http://mamaich.kasone.com/fr_pocket.htm
  
 
== Contacts ==
 
== Contacts ==
 
Write any questions regarding WinCE port to [mailto:yury_sidorov@mail.ru Yury Sidorov]
 
Write any questions regarding WinCE port to [mailto:yury_sidorov@mail.ru Yury Sidorov]

Revision as of 21:25, 12 October 2005

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 RTL units are complete.
  • Windows unit is almost complete. Delphi compatible declarations is not ready.

Building

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.

Documentation

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
    • PPC Command Shell from Microsoft Windows Mobile Developer Power Toys. Get it here
      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

Contacts

Write any questions regarding WinCE port to Yury Sidorov