System.Win.ComObj.TAutoIntfObject.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

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

Propriétés

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

Description

Create instancie un objet interface automation.

Vous devez utiliser le constructeur pour instancier des descendants de TAutoIntfObject car il n'existe aucune prise en charge de fabricant de classe intégrée.

TypeLib est une interface ITypeLib qui peut renvoyer les informations de type pour DispIntf.

DispIntf est le GUID de l'objet créé.

Create alloue de la mémoire à un objet interface automation, utilise TypeLib pour accéder aux informations de type pour DispIntf et initialise la propriété DispIntfEntry.