Daniel,
Have you tried the function CA_RegisterEventCallback function? (I am using
CVI 5.5)
This function is used by the functions generated by the Automation
Controller Instrument Driver Wizard.
It is not intended to be used directly.
It basically registers a callback for an ActiveX Automation server object
event.
To register the callback, you must specify the CAObjHandle of the server
object from which you want to receive events.
With CVI 5.5, there is an example for IE with Active X under the
samples/activeX directory.
Hope this helps,
Azucena
"Daniel Bentolila"
wrote in message
news:39100979@newsgroups.ni.com...
>
> Has anybody tried to capture an ActiveX component event in a CVI
application
> ?
>
> for example I've created a new instance of t
he Internet Explorer
application
> from the CVI , using the ActiveX Automation controler I choosed the
Microsoft
> internet controls then I selected IWebBrowser2 and the IWebBrowserEvents2
> classes and generated the fp file for the CVI.
> Under the the IWebBrowserEvents2 I see there are events fucntion for
example
> OnQuit, and I wanted my CVI app. to attach the quit event when the user
closes
> the IE window.
> Now at this point I expected to find some mechanism that let me to install
> some callback function where I can put my customised code to the quit
event,
> somehow I have to tell the IE to call my function whenever the OnQuit
callback
> function is attached and I don't know how to do this.