0

The idea is not to write the plugin itself using C# or C++ (although it would be nice if that were possible) but to have it access code written in C# or C++, preferably C#.

Thanks

John Smith
  • 4,416
  • 7
  • 41
  • 56
  • http://stackoverflow.com/questions/1680965/how-to-write-firefox-extension-with-visual-studio-using-c-sharp-programming-lang - Yes you can – Zac Aug 01 '12 at 15:36
  • Possible duplicate ? http://stackoverflow.com/questions/1680965/how-to-write-firefox-extension-with-visual-studio-using-c-sharp-programming-lang – phadaphunk Aug 01 '12 at 15:36
  • you can visit mozilla developer website [here](https://addons.mozilla.org/en-US/developers/docs/reference), explain all languages for developp firefox module, pluggins... – Doc Roms Aug 01 '12 at 15:39
  • 2
    Extensions in Firefox are not necessarily the same as plugins - the other question refers to extensions, which are typically javascript + xul, instead of plugins, which are typically native code. – Reed Copsey Aug 01 '12 at 15:40

1 Answers1

2

Firefox plugins can be written using NPAPI, which is a C API, so work perfectly well from C++. (This is probably the most common language used.)

Reed Copsey
  • 554,122
  • 78
  • 1,158
  • 1,373
  • Does the plugin developer have to compile a binary for every platform he wishes to target with the plugin? – Eric J. Aug 01 '12 at 15:42
  • @EricJ. Yes. That's one huge advantage of extensions, which are typically XUL + Javascript - they're cross platform – Reed Copsey Aug 01 '12 at 15:44