nzakas
02-22-2006, 08:43 PM
Hi,
I've been trying to create a utility that attaches to an instance of IE and access the window information. I began by running aximp on shdocvw.dll and adding it as a reference in my project. I can get an instance of IE and access the HTMLDocument in it, like so:
IHTMLDocument2 doc = (IHTMLDocument2) ie.Document;
However, if I try this:
doc.parentWindow.alert("hi");
I get System.Runtime.InteropServices.COMException:
System.Runtime.InteropServices.COMException (0x80040154): Class not registered
at mshtml.HTMLDocumentClass.IHTMLDocument2_get_parentWindow()
Has anyone run into this? Any solution?
Thanks
I've been trying to create a utility that attaches to an instance of IE and access the window information. I began by running aximp on shdocvw.dll and adding it as a reference in my project. I can get an instance of IE and access the HTMLDocument in it, like so:
IHTMLDocument2 doc = (IHTMLDocument2) ie.Document;
However, if I try this:
doc.parentWindow.alert("hi");
I get System.Runtime.InteropServices.COMException:
System.Runtime.InteropServices.COMException (0x80040154): Class not registered
at mshtml.HTMLDocumentClass.IHTMLDocument2_get_parentWindow()
Has anyone run into this? Any solution?
Thanks