我用MFC写了一个ActiveX 控件,在IE 中调用控件的方法都能成功。可控件的事件却没法响应成功。网页的脚本代码是由 ActiveX Control Pad 生成的。当控件有事件时,VC的调试窗口就会有:
constructing COleException, scode = E_UNEXPECTED ($8000FFFF).
的Warning 。请问要怎么样,才能使ActiveX 控件的事件,能在IE的响应?
constructing COleException, scode = E_UNEXPECTED ($8000FFFF).
的Warning 。请问要怎么样,才能使ActiveX 控件的事件,能在IE的响应?
不是线程产生的事件,IE就能响应,求解啊。
Fireev.exe Fires Events from a Second Thread
This article was previously published under Q157437MFC-based ActiveX controls typically fire their events from the same thread that implements the sink interface of the container that the events are being fired to. Sometimes, it is desirable to start a second thread in an ActiveX control that will fire events to the container. Because MFC ActiveX controls use the Apartment-threading model, special consideration must be taken when firing events from a secondary thread. see http://download.microsoft.com/download/vc60pro/File/1/NT4/EN-US/Fireev.exe
ATL不知怎么做。(不想在运行时显示窗口)
对于“MFC要做成可显示窗口的,并改用消息通知。”的确可以在消息响应函数中FireSomeEvent().
但是我想做在IE中运行时不显示窗口的MFC ActiveX控件
(设置OLEMISC_INVISIBLEATRUNTIME),发消息就会失败,我该怎么做呢?希望高手点拨一二。
http://expert.csdn.net/Expert/topic/2650/2650433.xml?temp=.6281244