[fpc-devel] Re: WinCE port patches

Yury Sidorov jura at ce.blagovest.com
Tue Jul 5 13:09:43 CEST 2005


From: "Hans-Peter Diettrich" <DrDiettrich at compuserve.de>

> How do MS compilers handle code written for both Ansi and Unicode
> environments, and the related data types? How are string arguments (out)
> handled in Windows API's?
> Is this Microsoft way a good model for other platforms?

MS provides types for strngs/characters which are become differ if UNICODE 
is defined or not.
For example LPCTSTR is an LPCWSTR if UNICODE is defined, an LPCTSTR 
otherwise.
Therefore UNICODE define can easily convert MS RTL to unicode and 
non-unicode versions.

Yury Sidorov.






More information about the fpc-devel mailing list