help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

CallPointerConstructor

Call a constructor with a pointer argument.

Declaration

Source position: objects.pp line 580

function CallPointerConstructor(

  Ctor: pointer;

  Obj: pointer;

  VMT: pointer;

  Param1: pointer

):pointer;

Description

CallVoidConstructor calls the constructor of an object. Ctor is the address of the constructor, Obj is a pointer to the instance. If it is Nil, then a new instance is allocated. VMT is a pointer to the object's VMT. Param1 is passed to the constructor. The return value is a pointer to the instance.

Note that this can only be used on constructors that require a pointer as the sole argument. It can also be used to call a constructor with a single argument by reference.

Errors

If the constructor expects other arguments than a pointer, the stack may be corrupted.

See also

CallVoidConstructor

  

Call a constructor with no arguments

CallPointerMethod

  

Call a method with a single pointer argument

CallVoidLocal

  

Call a local nested procedure.

CallPointerLocal

  

Call a local nested function with a pointer argument

CallVoidMethodLocal

  

Call a local procedure of a method

CallPointerMethodLocal

  

Call a local procedure of a method with a pointer argument

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505