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 -----Original Message----- From: Adam Lock [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 2:30 PM To: [EMAIL PROTECTED] Subject: registering XPCOM interfaces on the fly? I am mulling over options for adding scripting to my plugin for hosting ActiveX controls, so that JS can make calls directly onto methods on the hosted control. I want to be able to dynamically read the control's COM interface from it's typelib and expose an equivalent interface in XPCOM. Is this feasible? I believe I can implement an object derived from the XPC stub class that could marshal the interface calls back and forth but is it possible generate the appropriate XPT at runtime for this interface? By this I mean, can I build the XPT in memory and register them without copying .xpt files into components/? Thanks Adam
