Search code examples
internet-explorergoogle-chromeactivexnpapi

How to convert ActiveX control to NPAPI plugin


I have an ActiveX control which is designed to * Search for nearby wireless networks * Create a wireless access point * Manage network adapters

I would like this plugin to work in Google Chrome/Firefox. In IE; I can use the following code to embed:

<object classid="clsid:33FC4347-8118-4DB5-BFBE-8FCF2C96A997" width="32" height="32" id="thectrl"></object>

and I create a wireless network as follows (in JavaScript): thectrl.createNetwork("test",0,null,"NONE",3); The ActiveX has an IDL file, and outputs to OCX format. How do I turn this into a plugin for Google Chrome/Firefox?


Solution

  • 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: