|
IClassFactory
The IClassFactory interface manages the creation of new objects. This interface is supported by
class objects associated with CLSIDs.
When to Implement
You must implement this interface for every object definition so objects of
that type can be created.
When to Use
Call the methods of this interface when creating new objects through a class
object. First, call the CoGetClassObject API function to get an IClassFactory interface pointer to the class object, and then call the CreateInstance method to create an uninitialized object.
It is, however, not always necessary to go through this process to create an
object. To create a single uninitialized object, you can, instead, just call CoCreateInstance. OLE also provides numerous helper functions (with names of the form OleCreateXxx) to create compound document objects.
Methods in Vtable Order
IClassFactory Methods
| Description
| CreateInstance
| Creates an uninitialized object.
| LockServer
| Locks object application open in memory.
|
See Also
CoGetClassObject, CoCreateInstance , OleCreate
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|