Click here to Skip to main content
15,893,668 members
Articles / Programming Languages / Javascript

Working on an NPAPI-browser plugin

Rate me:
Please Sign up or sign in to vote.
2.33/5 (3 votes)
8 Jul 2010CPOL3 min read 116.9K   8.3K   30  
Extending the NPAPI-runtime to a Firefox plugin.
#pragma once

//Mozilla-API
#include <npfunctions.h>
#include <npruntime.h>

class CNPString
{
public:
	CNPString(LPCTSTR psz, int len);
	CNPString(NPString npString);
	~CNPString();

	void Set(LPCTSTR psz, int len);
	operator LPCTSTR ();
	int Compare(LPCTSTR psz);

protected:
	TCHAR *m_pszData;
	int m_len;
};

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
Germany Germany
I am living in germany and now living from programming for some Years. In my spare time I like sports as jogging, playing football (soccer) and basketball.

We must take care for our planet, because we and our family has no other. And everybody has to do something for it.

Comments and Discussions