RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Ptr Function

Converts a specified address to a pointer.

Pascal
function Ptr(Address: Integer): Pointer;
C++
void * Ptr(int Address);

System

In Delphi code, Ptr converts the given address to a pointer. A call to this function generates no code, but simply treats the 32-bit value given by Address as a pointer. Like nil, the result of Ptr is assignment compatible with all pointer types. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!