Re: IWebBrowser2 identity crisis

Tech-Archive recommends: Speed Up your PC by fixing your registry



Ben Schulz <yaXay@xxxxxxx> wrote:
I'm using Igor's method of monitoring frame states by listening for
BeforeNavigate2, NavigateComplete2 and DocumentComplete. However, when
I attach to a running IE instance (via IShellWindows) I have to
initialize the frame model by traversing the frames. And therein lies
the problem:

I'm using jSegue to use MSCOM from Java and I'm restricted to
IDispatch and IUnknown. So I can't use the IServiceProvider to get
IWebBrowser for a frame.

Can't you write a small helper object in C++, with one method that takes
IDispatch of the frame and returns IDispatch of the corresponding
IWebBrowser2?
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.