Binds an event to an object.
HRESULT BindHandler( LPCOLESTR pstrEvent, IDispatch* pdisp );
- pstrEvent
[in] Specifies the event to handle.
- pdisp
[in] Specifies the object to handle the event.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK | The method succeeded. |
This method binds an event to an object.