2
votes

I currently have an ActiveX control which links in many c/c++ dlls. The problem is that we now need this control to run on browsers other than IE (most importantly Firefox).

As I see it I have the following options:

  • Write the control as a firefox plugin. This seems like it will be the quickest but would then tightly couple us to Mozilla.
  • A complete rewrite in Silverlight or flex. Due to the size of our control would probably take too long.
  • Create a mixed client and server side solution, using JavaScript for the UI, similar to Google Docs.

Just wondering if anyone else has attempted to solve the problem of porting ActiveX controls? And, if any, what advice they could offer?

Thanks in advance

2

2 Answers

6
votes

Make it a Netscape Plugin (see http://www.mozilla.org/projects/plugins/) and it will work with all mainstream Windows browsers except IE (and browsers on other platforms as well, if you can port the code to those platforms).

3
votes

Use FireBreath: http://www.firebreath.org

Its designed to solve exactly your problem; you implement everything once under the firebreath abstraction. if there are any features you need that aren't supported or you don't know how to get working with FireBreath, the dev list is really good about answering queries quickly. And, since it's open source (but licensed so that you don't have to open source your code), you can make changes yourself as well.

Anything written using firebreath will work on IE, Firefox, Chrome, Safari, and possibly Opera (Opera doesn't 100% correctly implement NPAPI; with a little work you can make it all compatible).