From: "Alexey Barkovoy" <[EMAIL PROTECTED]>

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.


_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to