RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComObjectFactory.CreateComObject Method

Instantiates a TComObject object.

Pascal
function CreateComObject(const Controller: IUnknown): TComObject; virtual;
C++
virtual __fastcall TComObject CreateComObject(const IUnknown Controller);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!