System.Win.ComObj.TComObject.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create;

C++

__fastcall TComObject();
__fastcall TComObject(const System::_di_IInterface Controller);
__fastcall TComObject(TComObjectFactory* Factory, const System::_di_IInterface Controller);

Properties

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

Description

Instantiates a COM object that is not part of an aggregate.

Call Create to instantiate a COM object that is not part of an aggregate, at runtime.

Create allocates memory for a COM object, and then directly calls the CreateFromFactory constructor, passing it nil as the Controller parameter to indicate that the COM object is not being created as part of an aggregate.

See Also