RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComObject.CreateAggregated Constructor

Instantiates a COM object that is part of an aggregate.

Pascal
constructor CreateAggregated(const Controller: IUnknown);
C++
__fastcall TComObject(const IUnknown Controller);

Call CreateAggregated to instantiate a COM object that is part of an aggregate by passing it the IUnknown control object as the Controller parameter.  

CreateAggregated allocates memory for a COM object and then calls the CreateFromFactory constructor. Because the newly instantiated COM object is part of an aggregate, CreateAggregated passes Controller to CreateFromFactory as its Controller parameter. Controller also becomes the value of the Controller property of the COM object. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!