Basic example of a scriptable plugin for Firefox in C++ with VS2005/8

c++, npapi, scripting, visual-studio

Solution

The SDK has basic samples on how to write mozzila plugins which can be downloaded here: http://mxr.mozilla.org/seamonkey/source/modules/plugin/tools/sdk/

Here is the official mozilla plugin site http://www.mozilla.org/projects/plugins/

Hope it helps.

Problem

My experience to write a plugin for Firefox is below zero. Is someone out there who could point me to sample code on how to get this accomplished in C++ with VS2005/8? What I need to do with JavaScript in the hosting html page is something like this: ``` var obj = document.getElementById("MyFFPlugin"); var value = obj.CalculateValue; // Work with calculated value ```

Original source