Creating XPCOM Components

  • Revision slug: Creating_XPCOM_Components
  • Revision title: Creating XPCOM Components
  • Revision id: 105491
  • Created:
  • Creator: Nickolay
  • Is current revision? No
  • Comment

Revision Content

{{template.Next("Creating XPCOM Components:Preface")}}

Preface

Who Should Read This Book
Organization of the Tutorial
Following Along with the Examples
Conventions
Acknowledgements

An Overview of XPCOM

The XPCOM Solution
Gecko
Components
Interfaces
Interfaces and Encapsulation
The nsISupports Base Interface
XPCOM Identifiers
CID
Contract ID
Factories
XPIDL and Type Libraries
XPCOM Services
XPCOM Types
Method Types
Reference Counting
Status Codes
Variable Mappings
Common XPCOM Error Codes

Using XPCOM Components

Component Examples
Cookie Manager
The WebBrowserFind Component
The WebLock Component
Component Use in Mozilla
Finding Mozilla Components
Using XPCOM Components in Your Cpp
XPConnect: Using XPCOM Components From Script

Component Internals

Creating Components in Cpp
XPCOM Initialization
XPCOM Registry Manifests
Registration Methods in XPCOM
Autoregistration
The Shutdown Process
Three Parts of a XPCOM Component Library
XPCOM Glue
The Glue Library
XPCOM String Classes

Creating the Component Code

What We'll Be Working On
Component Registration
The regxpcom Program
Registration Alternatives
Overview of the WebLock Module Source
Digging In: Required Includes and Constants
Identifiers in XPCOM
Coding for the Registration Process
The Registration Methods
Creating an Instance of Your Component
webLock1.cpp

Using XPCOM Utilities to Make Things Easier

XPCOM Macros
Generic XPCOM Module Macros
Common Implementation Macros
Declaration Macros
webLock2.cpp
String Classes in XPCOM
Using Strings
nsEmbedString and nsEmbedCString
Smart Pointers

Starting WebLock

Getting Called at Startup
Registering for Notifications
Getting Access to the Category Manager
Providing Access to WebLock
Creating the WebLock Programming Interface
Defining the WebLock Interface in XPIDL
The XPIDL Syntax
Scriptable Interfaces
Subclassing nsISupports
The Web Locking Interface
Implementing WebLock
Declaration Macros
Representing Return Values in XPCOM
XPIDL Code Generation
Getting the WebLock Service from a Client
Implementing the iWebLock Interface
The Directory Service
Modifying Paths with nsIFile
Manipulating Files with nsIFile
Using nsILocalFile for Reading Data
Processing the White List Data
iWebLock Method By Method
Lock and Unlock
AddSite
RemoveSite
SetSites
GetNext
GetSites
HasMoreElements

Finishing the Component

Using Frozen Interfaces
Copying Interfaces Into Your Build Environment
Implementing the nsIContentPolicy Interface
Receiving Notifications
Implementing the nsIContentPolicy
Uniform Resource Locators
Checking the White List
Creating nsIURI Objects

Building the WebLock UI

User Interface Package List
Client Code Overview
XUL
The XUL Document
The Locking UI
Site Adding UI
weblock.xul
Overlaying New User Interface Into Mozilla
webLockOverlay.xul
Other Resources
weblock.css
Image Resources

Packaging WebLock

Component Installation Overview
Archiving Resources
The WebLock Installation Script
The WebLock Trigger Script
Distributing Your Component

Appendix A - Setting up the Gecko SDK

Downloading and Setting the SDK
Building a Microsoft Visual Cpp Project
Creating a New Project
Adding the Gecko SDK to the Project Settings
A Makefile for Unix

Appendix B - Resources

WebLock Resources
Gecko Resources
XPCOM Resources
General Development Resources

{{template.Next("Creating XPCOM Components:Preface")}} {{template.CXCLicenseBlock()}}

{{ wiki.languages( { "zh-cn": "cn/\u521b\u5efa_XPCOM_\u7ec4\u4ef6" } ) }}

Revision Source

<p>
</p><p>{{template.Next("Creating XPCOM Components:Preface")}}
</p>
<h3 name="Preface"> <a href="en/Creating_XPCOM_Components/Preface">Preface</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Preface#Who_Should_Read_This_Book">Who Should Read This Book</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Preface#Organization_of_the_Tutorial">Organization of the Tutorial</a> 
</dd><dd> <a href="en/Creating_XPCOM_Components/Preface#Following_Along_with_the_Examples">Following Along with the Examples</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Preface#Conventions">Conventions</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Preface#Acknowledgements">Acknowledgements</a>
</dd></dl>
<h3 name="An_Overview_of_XPCOM"> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM">An Overview of XPCOM</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#The_XPCOM_Solution">The XPCOM Solution</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Gecko">Gecko</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Components">Components</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Interfaces">Interfaces</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Interfaces_and_Encapsulation">Interfaces and Encapsulation</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#The_nsISupports_Base_Interface">The <code>nsISupports</code> Base Interface</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPCOM_Identifiers">XPCOM Identifiers</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#CID">CID</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Contract_ID">Contract ID</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Factories">Factories</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPIDL_and_Type_Libraries">XPIDL and Type Libraries</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPCOM_Services">XPCOM Services</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#XPCOM_Types">XPCOM Types</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Method_Types">Method Types</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Reference_Counting">Reference Counting</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Status_Codes">Status Codes</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Variable_Mappings">Variable Mappings</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/An_Overview_of_XPCOM#Common_XPCOM_Error_Codes">Common XPCOM Error Codes</a>
</dd></dl>
</dd></dl>
<h3 name="Using_XPCOM_Components"> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components">Using XPCOM Components</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#Component_Examples">Component Examples</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#Cookie_Manager">Cookie Manager</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#The_WebBrowserFind_Component">The <b>WebBrowserFind</b> Component</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#The_WebLock_Component">The <b>WebLock</b> Component</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#Component_Use_in_Mozilla">Component Use in Mozilla</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#Finding_Mozilla_Components">Finding Mozilla Components</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#Using_XPCOM_Components_in_Your_Cpp">Using XPCOM Components in Your Cpp</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Components#XPConnect:_Using_XPCOM_Components_From_Script">XPConnect: Using XPCOM Components From Script</a>
</dd></dl>
</dd></dl>
<h3 name="Component_Internals"> <a href="en/Creating_XPCOM_Components/Component_Internals">Component Internals</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#Creating_Components_in_Cpp">Creating Components in Cpp</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#XPCOM_Initialization">XPCOM Initialization</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#XPCOM_Registry_Manifests">XPCOM Registry Manifests</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#Registration_Methods_in_XPCOM">Registration Methods in XPCOM</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#Autoregistration">Autoregistration</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#The_Shutdown_Process">The Shutdown Process</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#Three_Parts_of_a_XPCOM_Component_Library">Three Parts of a XPCOM Component Library</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#XPCOM_Glue">XPCOM Glue</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#The_Glue_Library">The Glue Library</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Component_Internals#XPCOM_String_Classes">XPCOM String Classes</a>
</dd></dl>
</dd></dl>
<h3 name="Creating_the_Component_Code"> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code">Creating the Component Code</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#What_We.27ll_Be_Working_On">What We'll Be Working On</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#Component_Registration">Component Registration</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#The_regxpcom_Program">The <code>regxpcom</code> Program</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#Registration_Alternatives">Registration Alternatives</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#Overview_of_the_WebLock_Module_Source">Overview of the <b>WebLock</b> Module Source</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#Digging_In:_Required_Includes_and_Constants">Digging In: Required Includes and Constants</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#Identifiers_in_XPCOM">Identifiers in XPCOM</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#Coding_for_the_Registration_Process">Coding for the Registration Process</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#The_Registration_Methods">The Registration Methods</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#Creating_an_Instance_of_Your_Component">Creating an Instance of Your Component</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Creating_the_Component_Code#webLock1.cpp"><code>webLock1.cpp</code></a>
</dd></dl>
<h3 name="Using_XPCOM_Utilities_to_Make_Things_Easier"> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier">Using XPCOM Utilities to Make Things Easier</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#XPCOM_Macros">XPCOM Macros</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Generic_XPCOM_Module_Macros">Generic XPCOM Module Macros</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Common_Implementation_Macros">Common Implementation Macros</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Declaration_Macros">Declaration Macros</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#webLock2.cpp"><code>webLock2.cpp</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#String_Classes_in_XPCOM">String Classes in XPCOM</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Using_Strings">Using Strings</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#nsEmbedString_and_nsEmbedCString"><code>nsEmbedString</code> and <code>nsEmbedCString</code></a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Using_XPCOM_Utilities_to_Make_Things_Easier#Smart_Pointers">Smart Pointers</a>
</dd></dl>
<h3 name="Starting_WebLock"> <a href="en/Creating_XPCOM_Components/Starting_WebLock">Starting <b>WebLock</b></a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Getting_Called_at_Startup">Getting Called at Startup</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Registering_for_Notifications">Registering for Notifications</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Getting_Access_to_the_Category_Manager">Getting Access to the Category Manager</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Providing_Access_to_WebLock">Providing Access to <b>WebLock</b></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Creating_the_WebLock_Programming_Interface">Creating the <b>WebLock</b> Programming Interface</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Defining_the_WebLock_Interface_in_XPIDL">Defining the <b>WebLock</b> Interface in XPIDL</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#The_XPIDL_Syntax">The XPIDL Syntax</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Scriptable_Interfaces">Scriptable Interfaces</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Subclassing_nsISupports">Subclassing <code>nsISupports</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#The_Web_Locking_Interface">The Web Locking Interface</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Implementing_WebLock">Implementing <b>WebLock</b></a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Declaration_Macros">Declaration Macros</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Representing_Return_Values_in_XPCOM">Representing Return Values in XPCOM</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#XPIDL_Code_Generation">XPIDL Code Generation</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Getting_the_WebLock_Service_from_a_Client">Getting the <b>WebLock</b> Service from a Client</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Implementing_the_iWebLock_Interface">Implementing the <code>iWebLock</code> Interface</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#The_Directory_Service">The Directory Service</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Modifying_Paths_with_nsIFile">Modifying Paths with <code>nsIFile</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Manipulating_Files_with_nsIFile">Manipulating Files with <code>nsIFile</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Using_nsILocalFile_for_Reading_Data">Using <code>nsILocalFile</code> for Reading Data</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Processing_the_White_List_Data">Processing the White List Data</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#iWebLock_Method_By_Method"><code>iWebLock</code> Method By Method</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#Lock_and_Unlock"><code>Lock</code> and <code>Unlock</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#AddSite"><code>AddSite</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#RemoveSite"><code>RemoveSite</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#SetSites"><code>SetSites</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#GetNext"><code>GetNext</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#GetSites"><code>GetSites</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Starting_WebLock#HasMoreElements"><code>HasMoreElements</code></a>
</dd></dl>
</dd></dl>
<h3 name="Finishing_the_Component"> <a href="en/Creating_XPCOM_Components/Finishing_the_Component">Finishing the Component</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Using_Frozen_Interfaces">Using Frozen Interfaces</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Copying_Interfaces_Into_Your_Build_Environment">Copying Interfaces Into Your Build Environment</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Implementing_the_nsIContentPolicy_Interface">Implementing the <code>nsIContentPolicy</code> Interface</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Receiving_Notifications">Receiving Notifications</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Implementing_the_nsIContentPolicy">Implementing the <code>nsIContentPolicy</code></a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Uniform_Resource_Locators">Uniform Resource Locators</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Checking_the_White_List">Checking the White List</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Finishing_the_Component#Creating_nsIURI_Objects">Creating <code>nsIURI</code> Objects</a>
</dd></dl>
</dd></dl>
<h3 name="Building_the_WebLock_UI"> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI">Building the <b>WebLock</b> UI</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#User_Interface_Package_List">User Interface Package List</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#Client_Code_Overview">Client Code Overview</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#XUL">XUL</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#The_XUL_Document">The XUL Document</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#The_Locking_UI">The Locking UI</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#Site_Adding_UI">Site Adding UI</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#weblock.xul"><code>weblock.xul</code></a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#Overlaying_New_User_Interface_Into_Mozilla">Overlaying New User Interface Into Mozilla</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#webLockOverlay.xul"><code>webLockOverlay.xul</code></a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#Other_Resources">Other Resources</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#weblock.css"><code>weblock.css</code></a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Building_the_WebLock_UI#Image_Resources">Image Resources</a>
</dd></dl>
</dd></dl>
<h3 name="Packaging_WebLock"> <a href="en/Creating_XPCOM_Components/Packaging_WebLock">Packaging WebLock</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Packaging_WebLock#Component_Installation_Overview">Component Installation Overview</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Packaging_WebLock#Archiving_Resources">Archiving Resources</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Packaging_WebLock#The_WebLock_Installation_Script">The <b>WebLock</b> Installation Script</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Packaging_WebLock#The_WebLock_Trigger_Script">The <b>WebLock</b> Trigger Script</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Packaging_WebLock#Distributing_Your_Component">Distributing Your Component</a>
</dd></dl>
<h3 name="Appendix_A_-_Setting_up_the_Gecko_SDK"> <a href="en/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK">Appendix A - Setting up the Gecko SDK</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Downloading_and_Setting_the_SDK">Downloading and Setting the SDK</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Building_a_Microsoft_Visual_Cpp_Project">Building a Microsoft Visual Cpp Project</a>
<dl><dd> <a href="en/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Creating_a_New_Project">Creating a New Project</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#Adding_the_Gecko_SDK_to_the_Project_Settings">Adding the Gecko SDK to the Project Settings</a>
</dd></dl>
</dd><dd> <a href="en/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK#A_Makefile_for_Unix">A Makefile for Unix</a>
</dd></dl>
<h3 name="Appendix_B_-_Resources"> <a href="en/Creating_XPCOM_Components/Resources">Appendix B - Resources</a> </h3>
<dl><dd> <a href="en/Creating_XPCOM_Components/Resources#WebLock_Resources">WebLock Resources</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Resources#Gecko_Resources">Gecko Resources</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Resources#XPCOM_Resources">XPCOM Resources</a>
</dd><dd> <a href="en/Creating_XPCOM_Components/Resources#General_Development_Resources">General Development Resources</a>
</dd></dl>
<p>{{template.Next("Creating XPCOM Components:Preface")}}
{{template.CXCLicenseBlock()}}
</p>{{ wiki.languages( { "zh-cn": "cn/\u521b\u5efa_XPCOM_\u7ec4\u4ef6" } ) }}
Revert to this revision