CComDispatchDriver::CComDispatchDriver

This method is the constructor. If there is no lp parameter, the constructor initializes the data member p to NULL. If lp points to an IDispatch interface, the constructor sets p to that interface and calls AddRef. If lp points to an IUnknown interface, the constructor calls QueryInterface for the IDispatch interface and sets p to that interface.

Syntax

CComDispatchDriver( );

CComDispatchDriver( IDispatch* lp );

CComDispatchDriver( IUnknown* lp ));

At a Glance

Header file: Atlctl.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CComDispatchDriver Overview, CComDispatchDriver Methods