views:

628

answers:

2

I am trying to make a chrome plugin but Chrome API doesn't give me enough power. I want to use NPAPI but I have no idea how to use it but I do have experience in Visual C++.

Can someone show me a 'Hello world' in C++ application so I can get started?

+4  A: 

NPAPI plugins shouldn't be browser specific (at least as far as possible). Seamonkeys npruntime sample can be considered a basic Hello World for NPAPI. If you care about up-to-date Mac support, you need to take a look at WebKits or Apples samples.

Reading material to get you started:

There is also the FireBreath project: It is a framework aiming at lowering the entry barrier to browser plugin development and already takes care of most common tasks and issues.

Georg Fritzsche
I also recommend reading a book "Programming Netscape Plug-Ins" by Zan Oliphant http://www.podgoretsky.pri.ee/ftp/Docs/Internet/Netscape%20Plug-Ins/
Vanuan
+1  A: 

Here is a simple cross platform example: http://git.webvm.net/?p=npsimple

George Edison
Visual Studio solution release is for Smartphone? Also, getting the dependencies (npapi headers) is required, they are not inside the repository. Usually hunting the compilation dependencies in Windows sucks the most.
Ciantic
Turns out the headers can be found from rather obscure google-code SVN http://code.google.com/p/npapi-headers/
Ciantic