Export (0) Print
Expand All

COleDispatchDriver Class

Implements the client side of OLE automation.

class COleDispatchDriver

Name

Description

COleDispatchDriver::COleDispatchDriver

Constructs a COleDispatchDriver object.

Name

Description

COleDispatchDriver::AttachDispatch

Attaches an IDispatch connection to the COleDispatchDriver object.

COleDispatchDriver::CreateDispatch

Creates an IDispatch connection and attaches it to the COleDispatchDriver object.

COleDispatchDriver::DetachDispatch

Detaches an IDispatch connection, without releasing it.

COleDispatchDriver::GetProperty

Gets an automation property.

COleDispatchDriver::InvokeHelper

Helper for calling automation methods.

COleDispatchDriver::ReleaseDispatch

Releases an IDispatch connection.

COleDispatchDriver::SetProperty

Sets an automation property.

Name

Description

COleDispatchDriver::operator =

Copies the source value into the COleDispatchDriver object.

COleDispatchDriver::operator LPDISPATCH

Accesses the underlying IDispatch pointer.

Name

Description

COleDispatchDriver::m_bAutoRelease

Specifies whether to release the IDispatch during ReleaseDispatch or object destruction.

COleDispatchDriver::m_lpDispatch

Indicates the pointer to the IDispatch interface attached to this COleDispatchDriver.

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:

COleDispatchDriver

Header: afxdisp.h

Show:
© 2014 Microsoft