There is a good infrastructure called Firebreath for writing cross-platform browser plugins in C ++. It comes with lots of documentation and sample projects, so it's easy to get started. As a plus, besides NPAPI hosts, you also get free support for ActiveX browsers (Internet Explorer).
http://www.firebreath.org
kalev source share