RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComClassManager.GetFactoryFromClassID Method

Returns the class factory for a given COM class identifier.

Pascal
function GetFactoryFromClassID(const ClassID: TGUID): TComObjectFactory;
C++
__fastcall TComObjectFactory GetFactoryFromClassID(const TGUID ClassID);

GetFactoryFromClassID is used internally by DllGetClassObject to obtain a reference to the IClassFactory interface of the corresponding class factory object for a given class object specified by the ClassID parameter. 

GetFactoryFromClassID returns the class factory associated with the COM class specified by the ClassID parameter. If the class cannot be found, GetFactoryFromClassID returns nil (Delphi) or NULL (C++). 

 

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