IDocHostUIHandler GetExternal question
- From: eselk@xxxxxxxxxxxx
- Date: Wed, 17 Oct 2007 15:35:28 -0700
If I implement IDocHostUIHandler::GetExternal, can the IDispatch
object I return, have methods that return other IDispatch objects, and
can objects from JavaScript be passed as parameters as well?
So in JavaScript I would do something like this:
obj = window.external.createMyObject();
obj.DoSomething();
Does JavaScript just treat all objects as IDispatch, if not, how does
it know what type of object/variable the "createMyObject" function
returned? Well, I guess I might know the answer to that, since COM
uses variant params, and my Invoke function sets the variant type that
it returns... I guess that is how JavaScript knows the variable type,
right?
Maybe this is a JavaScript question, so if I don't get an answer here,
I'll try one of those groups.
By the way, I'm using C++ to implement IDocHostUIHandler (which is why
I know how the variant type gets set by the Invoke function, not set
by the run-time engine for you).
.
- Follow-Ups:
- Re: IDocHostUIHandler GetExternal question
- From: Igor Tandetnik
- Re: IDocHostUIHandler GetExternal question
- Prev by Date: Re: How to add a dropdown toolbar button - IE7
- Next by Date: Re: IDocHostUIHandler GetExternal question
- Previous by thread: Re: How to add a dropdown toolbar button - IE7
- Next by thread: Re: IDocHostUIHandler GetExternal question
- Index(es):
Loading