Vcl.AxCtrls.TActiveXPropertyPageFactory.CreateComObject
Delphi
function CreateComObject(const Controller: IUnknown): TComObject; override;
C++
virtual System::Win::Comobj::TComObject* __fastcall CreateComObject(const System::_di_IInterface Controller);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.AxCtrls.pas Vcl.AxCtrls.hpp |
Vcl.AxCtrls | TActiveXPropertyPageFactory |
Description
Instantiates a TComObject object.
Vcl.AxCtrls.TActiveXPropertyPageFactory.CreateComObject inherits from System.Win.ComObj.TComObjectFactory.CreateComObject. All content below this line refers to System.Win.ComObj.TComObjectFactory.CreateComObject.
Instantiates a TComObject object.
CreateComObject is the method that instantiates the class type for which TComObjectFactory is the class factory. CreateComObject calls the CreateFromFactory constructor of the TComObject class to create a COM object. CreateComObject passes itself as the Factory parameter to CreateFromFactory.
CreateComClass creates a COM object based upon the value of the ComClass property. ComClass is the class identifier (CLSID) used by other applications to identify the COM class for which they request an object instance.