Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there anyway to invoke functions from xpi without javascripts?

0 views
Skip to first unread message

andro

unread,
Nov 16, 2009, 4:43:04 PM11/16/09
to
Hello everyone, I created an xpcom in C/C++. I want to invoke
functions from the component on firefox startup. And I don't want to
use Javascripts to do that.

Is there anyway to replace the following javascripts code with C/C++?
Thanks a lot.

netscape.security.PrivilegeManager.enablePrivilege
("UniversalXPConnect");
const cid = "@xxxx/yyyy;1";
var obj = Components.classes[cid].createInstance();
obj = obj.QueryInterface(Components.interfaces.xxxxxx);

var bRet = obj.functionA();

Neil

unread,
Nov 17, 2009, 8:11:59 AM11/17/09
to
andro wrote:

>Hello everyone, I created an xpcom in C/C++. I want to invoke functions from the component on firefox startup.
>

Register as a startup observer. See
https://developer.mozilla.org/en/Observer_Notifications

--
Warning: May contain traces of nuts.

0 new messages