RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAutoIntfObject.Create Constructor

Create instantiates an automation interface object.

Pascal
constructor Create(const TypeLib: ITypeLib; const DispIntf: TGUID);
C++
__fastcall TAutoIntfObject(const ITypeLib TypeLib, const TGUID DispIntf);

You must use the constructor to instantiate TAutoIntfObject descendants because there is no built-in class factory support. 

TypeLib is an ITypeLib interface that can return the type information for DispIntf. 

DispIntf is the GUID for the object you are creating. 

Create allocates memory for an automation interface object, uses TypeLib to access the type information for DispIntf, and initializes the DispIntfEntry property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!