Hello!
I'm trying to let run an ActiveX plugin with Firefox.
I found and installed the Adam Lock's Plug-in for hosting ActiveX
controls. Most of the plugin functionalities are now working well but
not all.
Thus I'd like to send some javascript commands from the plugin to the
browser. With IE, it worked fine by doing:
vClientSite.GetContainer(vContainer);
if vContainer.QueryInterface(IServiceProvider, vServiceProvider) =
S_OK then
if vServiceProvider.QueryService(IID_IWebBrowserApp,
IID_IWebBrowser2, WB) = S_OK then
WB.Navigate('javascript:'+cmd, [...] );
with the following declarations:
vClientSite : IOLEClientSite;
vContainer : IOLEContainer;
vServiceProvider : IServiceProvider;
WB: IWebBrowser2;
But when the plugin is running with Firefox, the command
vServiceProvider.QueryService returns the error code E_NOINTERFACE.
I m a newbie in this area and didn't achieve to find any clear and easy
explanations on the web..
what can I do?
Thanks
Olivier, apologizing for the poor english.
_______________________________________________
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding