Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Implements the client side of OLE automation.
class COleDispatchDriver
Members
Public Constructors
Name |
Description |
---|---|
Constructs a COleDispatchDriver object. |
Public Methods
Name |
Description |
---|---|
Attaches an IDispatch connection to the COleDispatchDriver object. |
|
Creates an IDispatch connection and attaches it to the COleDispatchDriver object. |
|
Detaches an IDispatch connection, without releasing it. |
|
Gets an automation property. |
|
Helper for calling automation methods. |
|
Releases an IDispatch connection. |
|
Sets an automation property. |
Public Operators
Name |
Description |
---|---|
Copies the source value into the COleDispatchDriver object. |
|
Accesses the underlying IDispatch pointer. |
Public Data Members
Name |
Description |
---|---|
Specifies whether to release the IDispatch during ReleaseDispatch or object destruction. |
|
Indicates the pointer to the IDispatch interface attached to this COleDispatchDriver. |
Remarks
COleDispatchDriver does not have a base class.
OLE dispatch interfaces provide access to an object's methods and properties. Member functions of COleDispatchDriver attach, detach, create, and release a dispatch connection of type IDispatch. Other member functions use variable argument lists to simplify calling IDispatch::Invoke.
This class can be used directly, but it is generally used only by classes created by the Add Class wizard. When you create new C++ classes by importing a type library, the new classes are derived from COleDispatchDriver.
For more information on using COleDispatchDriver, see the following articles:
Inheritance Hierarchy
COleDispatchDriver
Requirements
Header: afxdisp.h