[fpc-devel] Re: WinCE port patches
    Yury Sidorov 
    jura at ce.blagovest.com
       
    Tue Jul  5 13:24:48 CEST 2005
    
    
  
From: "Alexey Barkovoy" <clootie at ixbt.com>
>> 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.
>
> And for Borland plan always was:
>
> {$IFDEF UNICODE}
>  String = WideString;
>  Char = WideChar;
> {$ELSE}  String = AnsiString;
>  Char = AnsiChar;
> {$END}
I think String and Char types must be leaved as is, but new types like 
SysChar/SysString can be defined for unicode support.
Yury Sidorov. 
    
    
More information about the fpc-devel
mailing list