If you're just looking for keystrokes, can't you subclass the control?
Valentin Galea
2009-05-16 17:55:47
If you're just looking for keystrokes, can't you subclass the control?
Underneath the covers all the various connection methods (AtlAdvise, AfxConnectionAdvise, etc) all use IConnectionPointContainer and IConnectionPoint—they're just saving you typing boilerplate COM goo.
I suspect this has to do with how you're connecting to the running instance of IE. How are you getting the IWebBrowser2 pointer? Are you being loaded into the IE process or are you a separate process? If you're running on a different thread than the IWebBrowser2's original thread (the IE Tab UI thread), are you doing proper COM marshalling?