Re: sample plugin, call dll from java script
jupiter <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
On Friday, January 18, 2013 11:07:26 PM UTC+5:30, Benjamin Smedberg wrote: > On 1/18/2013 5:40 AM, karthik sai wrote: > > > I want a plugin which has some dll files. I want to use those dll from > > > javascript. I am new to plugin development. > > > So, I want a simple sample plugin . I am using mozilla firefox 17. > > Are you talking about developing an NPAPI *plugin*, which is usually a > > single binary DLL and loaded by web content to display a MIME type like > > Flash? Or are you developing a browser extension, primarily written in > > JavaScript/XUL and sometimes contain external helper DLLs? It sounds > > like you're writing an extension and should ask this question in > > mozilla.dev.extensions. > > > > --BDS You can call C/C++ function from the extension's java script component. Here is an excellent article about this https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes