RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebAppAutoObjectFactory.Create Constructor

Instantiates a class factory object.

Pascal
constructor Create(AClassID: TGuid; const AClassName: string; const ADescription: string);
C++
__fastcall TWebAppAutoObjectFactory(TGuid AClassID, const AnsiString AClassName, const AnsiString ADescription);

Create TComObjectFactory 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 TComObjectFactory allocates memory for a class factory object, and adds the object to the class factory list managed by the ComClassManager. Then Create TComObjectFactory initializes the following properties with values passed to it: 

Sets ClassID to the ClassID parameter. 

Sets ClassName to the ClassName parameter. 

Sets Description to the Description parameter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!