How to convert ActiveX control to NPAPI plugin

放肆的年华 提交于 2019-12-04 17:11:50

If you want to rewrite it to support NPAPI, an easy way is to use the FireBreath framework. It gives you an abstraction over the plugin architectures, is cross-platform and allows you to support NPAPI and ActiveX from one source base.

But then again i am biased, so if you want to do it manually instead, here are some starting points:

It would be best if you have the source code of the ActiveX and let the NPAPI headers expose the functionality you need. If you want to turn that into a plugin, you would definitely need C++ knowledge to create that NPAPI library.

So your only solution at this point is creating your NPAPI plugin. You might try some of the Mozilla examples at https://developer.mozilla.org/En/Plugins. If you are completely new to NPAPI though, maybe you'd want to start with https://developer.mozilla.org/en/Gecko_Plugin_API_Reference.

To start developing, all you need are the standard NPAPI headers, which you can now get from http://code.google.com/p/npapi-headers/source/browse/

An example plugin we use in Chromium: http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/plugins/test/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!