First thing first. We need a decent, light-weight, text editor. While Visual Studio is great for working with code files it's a bit overkill for what we're doing here. A good editor to use would be something such as Programmer's Notepad orNodepad++ or something similar. I use Programmer's Notepad, myself. It's free, light-weight, and has quite a few features. Whenever I'm working with IDL files this is my editor of choice. That being said, I'm sure you have you're own preference for text editors so feel free to use your favorite.A Component Skeleton
Let's get started...
The second thing we need is a base, something to start building our component from. Below you'll find the skeletal block of code that we'll use as a template for building our XPCOM component.Open your favorite text editor and paste the code below into a new, empty, document. Save it as 'ExampleComponent.js'.
Not a whole lot to it, eh?Next Page