RAD Studio VCL Reference
TAutoObjectFactory Class

TAutoObjectFactory is the class factory for TAutoObject.

TAutoObjectFactory = class(TTypedComObjectFactory);
class TAutoObjectFactory : public TTypedComObjectFactory;

TAutoObjectFactory creates instances of the TAutoObject class, and has methods that manage the functionality of all of the instances of the automation objects it creates. 

TAutoObjectFactory inherits support for the IClassFactory and IClassFactory2 interfaces.

Note: In Delphi applications, an Automation object is a COM object, which means that the module in which it is implemented must provide a factory object so that the system can create the Automation object. To add an Automation object factory to your program, create the factory object in the initialization section of the unit that defines the Automation object. For more information about COM factories, see TComObjectFactory.


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