COleDispatchDriver::COleDispatchDriver

COleDispatchDriver( );

COleDispatchDriver( LPDISPATCHlpDispatch, BOOLbAutoRelease = TRUE );

COleDispatchDriver( constCOleDispatchDriver& dispatchSrc );

Parameters

lpDispatch

Pointer to an OLE IDispatch object to be attached to the COleDispatchDriver object.

bAutoRelease

Specifies whether the dispatch is to be released when this object goes out of scope.

dispatchSrc

Reference to an existing COleDispatchDriver object.

Remarks

Constructs a COleDispatchDriver object. The form COleDispatchDriver(LPDISPATCHlpDispatch, BOOLbAutoRelease = TRUE) connects the interface.

The form COleDispatchDriver(constCOleDispatchDriver& dispatchSrc) copies an existing COleDispatchDriver object and increments the reference count.

The form COleDispatchDriver( ) creates a COleDispatchDriver object but does not connect the IDispatch interface. Before using COleDispatchDriver( ) without arguments, you should connect an to it using either COleDispatchDriver::CreateDispatch or COleDispatchDriver::AttachDispatch.

Example

See the example for COleDispatchDriver::CreateDispatch.

COleDispatchDriver OverviewClass MembersHierarchy Chart

See Also   COleDispatchDriver::AttachDispatch, COleDispatchDriver::CreateDispatch