RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComClassManager.GetFactoryFromClass Method

Returns the class factory for a given COM class.

Pascal
function GetFactoryFromClass(ComClass: TClass): TComObjectFactory;
C++
__fastcall TComObjectFactory GetFactoryFromClass(TClass ComClass);

GetFactoryFromClass returns the class factory associated with the COM class specified by the ComClass parameter. If no such class factory is found in the list maintained by the ComClass manager, an EOleError exception is raised indicating that the class factory for the specified COM class is not in the current list. 

 

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