COleObjectFactory Class
Implements the OLE class factory, which creates OLE objects such as servers, automation objects, and documents.
class COleObjectFactory : public CCmdTarget
Members
Public Constructors
Name |
Description |
---|---|
Constructs a COleObjectFactory object. |
Public Methods
Name |
Description |
---|---|
Returns the OLE class ID of the objects this factory creates. |
|
Determines if the license of the control is valid. |
|
Indicates whether the object factory is registered with the OLE system DLLs. |
|
Registers this object factory with the OLE system DLLs. |
|
Registers all of the application's object factories with OLE system DLLs. |
|
Revokes this object factory's registration with the OLE system DLLs. |
|
Revokes an application's object factories' registrations with the OLE system DLLs. |
|
Unregisters all of an application's object factories. |
|
Registers this object factory with the OLE system registry. |
|
Registers all of the application's object factories with the OLE system registry. |
Protected Methods
Name |
Description |
---|---|
Requests a unique key from the control's DLL. |
|
Called by the framework to create a new object of this factory's type. |
|
Verifies that the key embedded in the control matches the key embedded in the container. |
|
Verifies that the control is licensed for design-time use. |
Remarks
The COleObjectFactory class has member functions for performing the following functions:
Managing the registration of objects.
Updating the OLE system register, as well as the run-time registration that informs OLE that objects are running and ready to receive messages.
Enforcing licensing by limiting use of the control to licensed developers at design time and to licensed applications at run time.
Registering control object factories with the OLE system registry.
For more information about object creation, see the articles Data Objects and Data Sources (OLE) and Data Objects and Data Sources: Creation and Destruction. For more about registration, see the article Registration.
Inheritance Hierarchy
COleObjectFactory
Requirements
Header: afxdisp.h