IDocHostUIHandler GetExternal question



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).

.


Loading