Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A Simple XPCOM Tutorial

, 30 Jun 2010
Step by step XPCOM creation and implementation in C++.
#include "nsIGenericFactory.h"
#include "Sample.h"

NS_GENERIC_FACTORY_CONSTRUCTOR(CSample)

static nsModuleComponentInfo components[] =
{
	{
			SAMPLE_COMPONENT_CLASSNAME,
			SAMPLE_COMPONENT_CID,
			SAMPLE_COMPONENT_CONTRACTID,
			CSampleConstructor,
	}
};

NS_IMPL_NSGETMODULE("sample_module", components)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Md. Mazharul Islam Khan
Software Developer (Senior) Eyeball Networks Inc, Dhaka
Bangladesh Bangladesh
I strongly believe, a person's strongest point is to know his/her weak point. I try to be simple.
 
I have completed BSc in Computer Science & Engineering from Shah Jalal University of Science & Technology, Sylhet, Bangladesh (SUST).
 

Watch out for my other CodeProject Articles.

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 1 Jul 2010
Article Copyright 2010 by Md. Mazharul Islam Khan
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid