System.Win.VCLCom.TComponentFactory.CreateComObject
Delphi
function CreateComObject(const Controller: IUnknown): TComObject; override;
C++
virtual System::Win::Comobj::TComObject* __fastcall CreateComObject(const System::_di_IInterface Controller);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.Win.VCLCom.pas System.Win.VCLCom.hpp |
System.Win.VCLCom | TComponentFactory |
Description
Instancie un objet VCL COM.
Si un Controller
est spécifié, il est utilisé comme le contrôleur de votre nouvelle instance de TComponentFactory. Controller
est un objet contrôle si l'objet fait partie d'un aggrégat, ou nil au cas contraire.