System.Win.ComObj.TComClassManager.GetFactoryFromClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetFactoryFromClass(ComClass: TClass): TComObjectFactory;

C++

TComObjectFactory* __fastcall GetFactoryFromClass(System::TClass ComClass);

Properties

Type Visibility Source Unit Parent
function public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TComClassManager

Description

Returns the class factory for a given COM class.

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.

See Also