How to use IHTMLDocument3::attachEvent to let IE call a function in my Lib?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p align=left>Hi,
<p align=left> 
<p align=left>The signature of IHTMLDocument3::attachEvent is <pre>HRESULT attachEvent(BSTR <i>event</i>,  IDispatch *<i>pDisp</i>, VARIANT_BOOL *<i>pfResult</i> );[/code]
<div align=left><pre class=clsSyntax><font face=Arial>I just dont know how to implement the IDispatch interface for this purpose. How does the IE know which method of the object which hosts IDispatch interface I want to call? What kind of parameter will be passed in through this interface?</font>[/code]<pre class=clsSyntax><font face=Arial>Can I create a Class in .Net with IDispatch interface?</font>[/code]<pre class=clsSyntax><font face=Arial></font> [/code]<pre class=clsSyntax><font face=Arial>Thanks!</font>[/code] <pre>[/code]

View the full article
 
Back
Top