Difference between PAnsiChar and PChar

后端 未结 5 1012
谎友^
谎友^ 2021-02-06 12:17

Is there a difference and what type of between PAnsiChar and PChar? (in Delphi previous 2007)

Thank you, in advance!

5条回答
  •  遥遥无期
    2021-02-06 12:40

    PChar is a pointer to a "char", whatever that happens to be. In D2009 and later, Char means a UnicodeChar. Before that, Char was an AnsiChar.

    The difference is that if you're using D2007 and migrate to a later version, the definition of PChar will change, while the definition of PAnsiChar will not.

提交回复
热议问题