Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling a .dll function from a html page that runs on chrome and firefox

I have a dll written in c++. now i need to call the functions in the dll from a html page.

I have done this by calling the dll in vbscript (Activex) so that i can run the only in IE.

Now i need to run this on Chrome as well as Firefox.

What i have to do, whether i have to write in javascript simply or need to develop any extensions for that ?

can anyone give a solution with a simple demo for this?

Thanks in advance.

like image 369
Narayan Avatar asked Feb 24 '12 12:02

Narayan


2 Answers

You have no chance until you create non-portable extension for all browsers.

Firefox allows you to create XPI extension aka "addon"

Chrome has extensions

There is no cross platform solution for DLL files, however, you can try to create flash or java applet, which will interact with your DLL, it can be "portable" enough for you.

like image 82
rkosegi Avatar answered Sep 24 '22 14:09

rkosegi


You can write an NPAPI plugin for both Mozilla and Chrome. Or you can use Firebreath plugin, but there may arise some dependency issue.

like image 26
Akhil Avatar answered Sep 24 '22 14:09

Akhil