简体   繁体   中英

loading an external c++ function from an HTML page

I am trying to develop an HTML page (internal of course) that can in some way be able to load another application. I don't mind using any language to do that. I am using a webkit interface to render the HTML page (well, it QTWebKit) and sadly it does not allow using ActiveXObject (JavaScript) to be used to call another app. I am not sure if this is possible but hopefully it is.

As I said, I don't mind using any kind of script or methods to do that (as long as its user friendly).

So my question in short: Can I load an external c++/c# function from a dll and call the functions directly from an HTML page.

With QtWebKit you can easily expose objects to script using QWebFrame::addToJavaScriptWindowObject() , see eg this blog post for an example.

If you want a plugin that works in all browsers except IE, use NPAPI or one of its wrappers. If you want to support all browsers including IE, you can simplify your work by using a framework like FireBreath .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM