Open main menu

CDOT Wiki β

Changes

Real World Mozilla First XPCOM Component

12 bytes removed, 21:04, 27 February 2007
Registering FirstXpcom
There are other things you should know about making your code compatible on all of the supported Mozilla platforms. You can read about them here: http://www.mozilla.org/hacking/portable-cpp.html.
== Registering FirstXpcom Module Code ==
We now need to write a bit of code to get our component registered. Components reside in modules, and those modules are defined in shared library files (i.e., DLLs or DSOs) that typically sit in the components directory of an XPCOM application.
* Static libraries for your modules in dist/lib/ (in case other modules want to link statically instead of using XPCOM).
* XPI file in dist/xpi-stage/firstxpcom.xpi.
* Everything else in dist/bin/extensions/firstxpcom@senecac.on.ca
== Testinig FirstXpcom ==