RAD Studio VCL Reference
|
Instantiates a class factory object.
constructor Create(ComServer: TComServerObject; ComClass: TComClass; const ClassID: TGUID; const ClassName: string; const Description: string; Instancing: TClassInstancing; ThreadingModel: TThreadingModel = tmSingle);
__fastcall TComObjectFactory(TComServerObject ComServer, TComClass ComClass, const TGUID ClassID, const AnsiString ClassName, const AnsiString Description, TClassInstancing Instancing, TThreadingModel ThreadingModel = tmSingle);
Create instantiates a class factory, usually when the server is loaded. Class factories should be instantiated in the initialization section of the unit that includes their associated server, so that they are automatically available when the server is loaded.
Create allocates memory for a class factory object, and adds the object to the class factory list managed by the ComClassManager. Then Create initializes the following properties with values passed to it:
Sets ComServer to the ComServer parameter.
Sets ComClass to the ComClass parameter.
Sets ClassID to the ClassID parameter.
Sets ClassName to the ClassName parameter.
Sets Description to the Description parameter.
Sets Instancing to the Instancing parameter.
Sets ThreadingModel to the ThreadingModel parameter.
Sets ErrorIID to IUnknown.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|