ActiveX Events not trapped

Started by Jon Hanson, February 20, 2007, 08:51:43 AM

Previous topic - Next topic

Jon Hanson

Hi all, this is my first post.

I am using FireFly version 2.75 running under Windows XP Pro SP2.

I loaded the tutorial project I:\ProgramFiles\FireFly\Tutorial_2\WebBrowser.prj
and read the help file on using ActiveX/OCX.

When I compile and run the program works as specified ie I tried www.google.co.za and the page loaded perfectly.
The problem is I did not see the MsgBox which is in the event handler
namely ShellDWebBrowserEvents1_NavigateComplete()
indicating that the event was not fired / trapped.
My background is VB6 so any help would be appreciated.

TechSupport

I seem to be getting an error during compile.... looks like FireFly is generating an incorrect name for the events. I am looking into the problem now. When I manually fix the generated code and compile using JellyFish, then the web control works perfectly (you get the NavigateComplete msgbox).

I'll post again as soon as I can fix up the FireFly code generation.

TechSupport

I deleted the web browser control and then added it again. I then generated the Events file and added the MsgBox to it. I compiled and ran the project and the msgbox popped up as Google loaded.

Maybe you can send me your Tutorial project so I can spot the problem.

Jon Hanson

Hi Paul

based on your comments about code generation I went to the Tutorial 2 directory and deleted all the CODEGEN_ files in \release as well as the events .inc file in the directory above. I then reassigned the PROGID using the COM browser and recreated the events inc file and compiled.

My compile ran with no errors and I now get the msgbox appearing.
Thanks for pointing me in the right direction.