[Lazarus] TProcess, UTF8, Windows
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Mon Apr 16 10:40:10 CEST 2012
Jürgen Hestermann schrieb:
> where I answered:
>
> ----------------------------------
> String is generic so it can be pchar, shortstring or ansistring or ....
> ----------------------------------
>
> because I think that it is quite irrelevant what type of string
> (ShortString, AnsiString, pchar) is used for the parameter.
Sorry, *generic* has nothing to do with string *assignment
compatibility*. It means that String can be ShortString (long ago), and
will become an UnicodeString soon.
PChar, ShortString and AnsiString are different types, but the compiler
knows how to convert between each other.
DoDi
More information about the Lazarus
mailing list