Note
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier les répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de changer de répertoire.
Binds an event to an object.
Syntax
HRESULT BindHandler(
LPCOLESTR pstrEvent,
IDispatch* pdisp
);
Parameters
pstrEvent
[in] Specifies the event to handle.
pdisp
[in] Specifies the object to handle the event.
Return Value
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. |
Remarks
This method binds an event to an object.