Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Browsers / Internet Explorer / May 2007



Tip: Looking for answers? Try searching our database.

ActiveX event handling does not work as expected under IE7?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dhanak@gmail.com - 09 May 2007 10:23 GMT
Greetings!

I'm developing an ActiveX control in VS6 C++, which occasionally fires
events to be handled from JavaScript in the embedding HTML page. I
added the events to the project as described by the appropriate MSDN
help pages, so the IDL file was modified accordingly, and the helper
methods (Fire_...) have also been created.

Events fire as expected when the Fire_... method is called from the
DLL's InPlaceActivate() method. This is perfect, for example, for
detecting clicks within the area of the control. However, the same
event does not propagate when the Fire_... method is invoked from
another location in my program (probably another thread).

When I digged a bit deeper, it turned out that in the latter case, the
IDisplatch::Invoke() method invocation within the autogenerated
Fire_... method returned an error code, namely E_UNEXPECTED.
Furthermore the event propagation works perfectly when I run the
control in the ActiveX Test Container, so the error occurs only in IE.

I'm using IE7 under WXP SP2, on an I386 arch. I spent a lot of time
searching for a solution on the Internet, to no avail.

Any ideas, anyone?  Please CC in private mail, I'm not subscribed to
this group. Thanks.

(This might not be the right place to post this question, but I have
tried on the MSDN forums, with no luck at all.)
dhanak@gmail.com - 10 May 2007 10:13 GMT
I reposted the qestion to microsoft.public.internetexplorer.general,
under the same title.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.