Difference between PAnsiChar and PChar
delphi, types
Solution
In D2009 and later: yes, there is. `PChar` is a pointer to a `Char` which is a unicode character (a `WideChar`). And `PAnsiChar` is a pointer to a `AnsiChar`, which is - as the name implies - an ANSI character.
EDIT: For pre-2009 versions of Delphi `PChar` and `PAnsiChar` are exactly the same. They both point to an (Ansi) character.
Problem
Is there a difference and what type of between PAnsiChar and PChar? (in Delphi previous 2007) Thank you, in advance!