Difference between PAnsiChar and PChar

后端 未结 5 849
谎友^
谎友^ 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:22

    Delphi 2009 Character types are Char, AnsiChar and WideChar, where Char defaults to WideChar. In previous versions of Delphi, a Char would be equivalent to an AnsiChar. The P is to indicate a pointer to the given type.

提交回复
热议问题