System.Win.ComObj.TAutoIntfObject.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(const TypeLib: ITypeLib; const DispIntf: TGUID);

C++

__fastcall TAutoIntfObject(const _di_ITypeLib TypeLib, const GUID &DispIntf);

Properties

Type Visibility Source Unit Parent
constructor public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TAutoIntfObject

Description

Create instantiates an automation interface object.

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.