can't call script function in MSHTML hr=DISP_E_UNKNOWNNAME
Script functions actually belong to the window object, not the document
object. Instead of getting to a script object (IHTMLDocument2::get_Script)
retrieve the window object (IHTMLDocument2::get_parentWindow) and proceed
from there as described in the article.
--
With best wishes,
Igor Tandetnik
Quote:
> How can I call script functions in HTML from application hosting
WebBrowser?
> I have read KB Q185127
> http://support.microsoft.com/support/kb/articles/Q185/1/27.ASP
> but it doesn't work, GetIDOfNames returned DISP_E_UNKNOWNNAME.
> the HTML was excatly the same. any ideas?