Sign in Join
Wiki copytemporary

WinCE port Hints: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: WinCE port Hints

OldNewLine
1+*(WinCE only)*
2+
3+This page collects platform specific programming hints for [[arm-wince]] and [[i386-wince]] Targets. (Where a hint is specific to a CPU, this is noted)
4+
5+### WinCE port notes
6+
7+- If you are getting "Uknown error! Error code : 0xc1" and using dlls then the error might be becouse of using some export entries not found in dll file.Check the dll file export section and name of them and how you used them.
8+- **`chdir`** procedure always produces an error (WinCE does not support setting of current directory).
9+- All file/dir paths must be absolute (started with \\).
10+- WinCE is unicode OS. All string parameters to API calls must be PWideChar.
11+- WinCE does not have support for environment strings.
12+- 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.\
13+ To enable console in WinCE install one of the following programs:
14+ - **PocketCMD** by SymbolicTools. It is recommended solution.\
15+ Get it [here](http://www.symbolictools.de/public/pocketconsole/applications/PocketCMD)\
16+ Seems to be ARM/PPC-only
17+ - **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)\
18+ 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.
19+ - To enable console output in Windows Mobile 5 and 6 set "HKEY_LOCAL_MACHINE\Drivers\Console\OutputTo" to 0.
20+
21+### Project settings
22+
23+\<to be extended\>
24+
25+---
26+*From the Free Pascal wiki, page "WinCE port Hints", as it stood on 2020-08-09 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
27+Category: WinCE

Back to history