Click here to Skip to main content
15,892,298 members
Articles / Programming Languages / C++

String Handling in XPCOM

Rate me:
Please Sign up or sign in to vote.
4.78/5 (8 votes)
16 Aug 2010CPOL7 min read 50.4K   313   9  
Using different types of strings in XPCOM.
#include "nsISupports.idl"

[scriptable, uuid(658ABC9E-29CC-43E9-8A97-9D3C0B67AE8B)]
interface ISample : nsISupports
{
	long		Add(in long a, in long b);  
	string		ReverseString(in string s);
	AString		ReverseAString(in AString nStr);
	wstring		ReverseUnichar(in wstring nStr);
	ACString	ReverseACString(in ACString nStr);	
};

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)


Written By
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.

Comments and Discussions