Mozilla XPCOM extensions.

 

Note that XPCOM is not supported from Firefox 3.6.XPT files are TLB files of Mozilla Plugin Framework. You need both xpt and dll files for registering the XPCOM component. So we can extract the interface/class information from the xpt file.

We can get the interface information from the .xpt files using xpt_dump.exe (from the xulrunner SDK)

eg,

C:\Gecko\sample_xpcom1\sample_xpcom>xpt_dump ISample.xpt
Header:
   Major version:         1
   Minor version:         2
   Number of interfaces:  2
   Annotations:
      Annotation #0 is empty.

Interface Directory:
   – ::nsISupports (00000000-0000-0000-c000-000000000046):
      [Unresolved]
   – ::ISample (658abc9e-29cc-43e9-8a97-9d3c0b67ae8b):
      Parent: ::nsISupports
      Flags:
         Scriptable: TRUE
         Function: FALSE
      Methods:
         uint32 Add(in int32, in int32, out retval int32);
      Constants:
         No Constants

 

Some good links for understanding XPCOM components (old links):

http://www.ibm.com/developerworks/webservices/library/co-xpcom/index.html

http://www.ibm.com/developerworks/webservices/library/co-xpcom2/index.html

http://www.ibm.com/developerworks/webservices/library/co-xpcom3/index.html

 

Some good links for building XPCOM components:

http://www.iosart.com/firefox/xpcom/

http://nerdlife.net/building-a-c-xpcom-component-in-windows/

Advertisements
This entry was posted in Firefox, Mozilla, XPCOM and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s