System.Win.ComObj.TTypedComObjectFactory.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(ComServer: TComServerObject;  TypedComClass: TTypedComClass; const ClassID: TGUID; Instancing: TClassInstancing; ThreadingModel: TThreadingModel = tmSingle);

C++

__fastcall TTypedComObjectFactory(TComServerObject* ComServer, TTypedComClass TypedComClass, const GUID &ClassID, TClassInstancing Instancing, TThreadingModel ThreadingModel);

Properties

Type Visibility Source Unit Parent
constructor public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TTypedComObjectFactory

Description

Instantiates a TTypedComObjectFactory object.

Create is used to instantiate a TTypedComObjectFactory. Create is automatically called when the COM server that contains the class definition for a TTypedComObject is loaded. Class factories should be instantiated in the initialization section of the unit that includes their associated server.

Create allocates memory for a TTypedComObjectFactory, and verifies that a type library exists and is available, before calling the inherited Create. If the type library is not available, an EOleSysError exception is raised.

See Also