Oswald, Paul wrote:
>Adam,
>
>I don't really know the issues involved on the mozilla side of things, but I
>think you are trying to build a typelib in mozilla from an ActiveX control
>to use at runtime, correct?
>
>I am pretty sure that ActiveX typelibs are not the way to go. My
>understanding of typelibs (I am an ATL programmer) is that they are used in
>early binding at design time. I think for late binding you want to query the
>object for a list of interfaces using GetIDsOfNames() followed by a call to
>Invoke(). This is usually done through the IDispatch interface that the
>ActiveX object exposes for scripting clients.
>
>- Paul
>
Basically I need the control's typeinfo in order to construct a
corresponding XPCOM interface which has the same number of methods,
arguments (of the correct type) as the original interface. GetIDsOfNames
just gets me a list DISPIDs corresponding to a list of names thatI must
supply. Unfortunately I don't know what list of names are until I read
the typelib (or the plugin implements a XPCOM IDispatch-like interface
that is called with one supplied) so its nearly unavoidable.