Search results for 'Delphi Pointer'. 1 post(s) found.

  1. 2009/08/22 Delphi Pointer Types
2009/08/22 22:14

Delphi Pointer Types


Sometimes, you may confuse the name of the Pointer type in delphi, because of the difference with C/C++. It's really make us confusion. Actually usage rule is also different, so I always forget how to use Delphi Pointer easily.
Anyway below table is useful when I need to implement something...
Type   Name   Summary
 
 Type   PAnsiChar   A Pointer to an AnsiChar value
 Type   PAnsiString   Pointer to an AnsiString value
 Type   PChar   A Pointer to an Char value
 Type   PCurrency   Pointer to a Currency value
 Type   PDateTime   Pointer to a TDateTime value
 Type   PExtended   Pointer to a Extended floating point value
 Type   PInt64   Pointer to an Int64 value
 Type   Pointer   Defines a general use Pointer to any memory based data
 Type   PShortString   A Pointer to an ShortString value
 Type   PString   Pointer to a String value
 Type   PVariant   Pointer to a Variant value
 Type   PWideChar   Pointer to a WideChar
 Type   PWideString   Pointer to a WideString value

Actually PByte is not mentioned above, you can make Pointer as following rule:

P<The original data type>

For example, Pointer for integer type is PInteger. Isn't it simple ?
Trackback 0 Comment 0

Trackback : Cannot send a trackbact to this post.