Search results for 'Delphi Pointer'. 1 post(s) found.
- 2009/08/22 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 ?
Another posts included in "Delphi"
| Get the length of arrays and a string (0) | 2009/08/22 |
| How to resize PNG file in Delphi ? (0) | 2009/09/03 |
| Delphi API to get the current working directory (0) | 2009/09/03 |
| How to read/wrtie INI file in Delphi ? (0) | 2009/08/21 |
| How to get file created time, modified time, and last accessed time ? (0) | 2009/08/19 |
| Delphi string conversion functions - AnsiToUTF-8, UTF8Encode, ... (0) | 2009/07/20 |
| When subject is crashing in TIdSMTP VCL (0) | 2009/07/20 |
| How to send text/html based email in UTF-8 with TIdSMTP, TIdMessage VCL (0) | 2009/07/20 |

Prev

Rss Feed