RAD Studio VCL Reference
|
Instantiates a TTypedComObjectFactory object.
constructor Create(ComServer: TComServerObject; TypedComClass: TTypedComClass; const ClassID: TGUID; Instancing: TClassInstancing; ThreadingModel: TThreadingModel = tmSingle);
__fastcall TTypedComObjectFactory(TComServerObject ComServer, TTypedComClass TypedComClass, const TGUID ClassID, TClassInstancing Instancing, TThreadingModel ThreadingModel = tmSingle);
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|