共用方式為


COleDispatchDriver::ReleaseDispatch

voidReleaseDispatch();

Remarks

Releases the connection. If auto release has been set for this connection, this function calls IDispatch::Release before releasing the interface.

Example

See the example for COleDispatchDriver::AttachDispatch.

COleDispatchDriver OverviewClass MembersHierarchy Chart

See Also   COleDispatchDriver::DetachDispatch, COleDispatchDriver::CreateDispatch, COleDispatchDriver::AttachDispatch, COleDispatchDriver::m_lpDispatch, COleDispatchDriver::m_bAutoRelease