Re: IHTMLFrameBase2.getcontentWindow throws COMException: 80004002: No such interface supported

Cyril <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <001301c469ee$4529b270$0101c80a@home1kvb86k4sm>
Hi Brian,
all questions on njawin topics send to SUN Native Interface forums:
http://forum.java.sun.com/ or there you will find my email address.
About your question, I guess you create WebBrowser_V1 Object instead of
WebBrowser.

Vitaly

----- Original Message -----
From: "Brian Knorr" <[email protected]>
Newsgroups: gmane.comp.windows.devel.jawin
Sent: Wednesday, July 14, 2004 10:01 PM
Subject: IHTMLFrameBase2.getcontentWindow throws COMException: 80004002: No
such interface supported


> I used njawin to generate mshtml and shdocvw in order to control Internet
> Explorer... all the methods work great until I called the getcontentWindow
> on IHTMLFrameBase2... any ideas why this is happening?
>
>
> Method Called on IHTMLFrameBase2:
>
> public IHTMLWindow2 getcontentWindow() throws COMException {
>     return new IHTMLWindow2((DispatchPtr) get("contentWindow"));
> }
>
>
> Stack Trace:
>
> com.develop.jawin.COMException: 80004002: No such interface supported
>
>  at com.develop.jawin.marshal.GenericStub.dispatchInvoke0(Native
> Method)
>  at com.develop.jawin.marshal.GenericStub.dispatchInvoke(Unknown
> Source)
>  at com.develop.jawin.DispatchPtr.getN(Unknown Source)
>  at com.develop.jawin.DispatchPtr.get(Unknown Source)
>  at jcom.nextjet.MSHTML.IHTMLFrameBase2.getcontentWindow(Unknown
> Source)
>  at control.IExplorer.getFrameContent(IExplorer.java:233)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.