Click here to Skip to main content
12,897,124 members (51,362 online)
Click here to Skip to main content

Tagged as


45 bookmarked
Posted 28 Jun 2010

A Simple XPCOM Tutorial

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


	/* member initializers and constructor code */

	/* destructor code */

/* long Add (in long a, in long b); */
NS_IMETHODIMP CSample::Add(PRInt32 a, PRInt32 b, PRInt32 *_retval)
	//*_retval = a + b;
	*_retval = a + b;
	return NS_OK;

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.


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.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170424.1 | Last Updated 1 Jul 2010
Article Copyright 2010 by Md. Mazharul Islam Khan
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid