When Mozilla starts, it sends the "xpcom-startup" event to all
components that were registered to listen to this event. So if you want
your component to be invoked, you must register to this event by
implementing the IObserver interface. Take a look at:
http://www.mozilla.org/projects/xpcom/book/cxc/html/weblock.html#998205
Goodluck!
Vonuyx
Srinivasa Raghavan wrote:
Hi Vonuyx ,
Thanks for your information.
I did what you said, but while executing regxpcom i see my component
registered properly (i gave prints inside the constructor , which got
printed in the console). And i saw my component information in the
compreg.dat file also.
But while executing firefox my component was not invoked.
I tried to completely delete the profiles directory and made it to
recreate. Eventhough my component was not invoked while launching firefox.
Please do help me what i should do to invoke my component while
launching firefox.
Thanks & Regards
Raghavan
vonuyx wrote:
Hello,
You can do the following:
1. Copy the .dll and .xpt file into the components directory as you did,
2. Copy regxpcom.exe (from the gecko-sdk) in to the Mozilla Firefox
directory (in your case: C:\Program Files\Mozilla Firefox)
3. Run regxpcom.exe.
Hope it could help.
Vonuyx
Srinivasa Raghavan wrote:
Hi,
I have an xpcom component written in c++.
I have created .dll and .xpt file and copied it to the components
directory (C:\Program Files\Mozilla Firefox\components)
Now i want to register it to the Firefox components directory.
I have tried it to install by firefox.exe -register. But it is not
registered.
How do i register the component in firefox ?
What are the steps to do this? Please point me to some documents (if
any).
Thanks & Regards
Raghavan
--
"Buy what you want. Sell what you don't want. Use this portal,
www.finepick.com <http://www.finepick.com>, for FREE. Simple!"
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom
--
"Buy what you want. Sell what you don't want. Use this portal,
www.finepick.com <http://www.finepick.com>, for FREE. Simple!"
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom