667
edits
Changes
→Module Code
The final line, the constructor, is the name of the constructor automatically generated by '''NS_GENERIC_FACTORY_CONSTRUCTOR'''. It will be the name of your concrete class followed by "Constructor," in our case '''FirstXpcomConstructor'''.
And that's it for the module/factory code. Now all we need == FirstXpcom.cpp == All that remains is our implementation of the methods. Here is the final version of '''FirstXpcom.cpp''' (emphasis added to highlight changes):
'''#include <stdio.h> // for printf()'''