I have an .exe built from an HTML5/JavaScript project using Adobe Air, and a .lib file created from a c++ project. Is there a good way to call the methods in the .lib file from JavaScript?
Asked
Active
Viewed 82 times
2
-
Good luck with that. Let us know when you've finished your research. – Lightness Races in Orbit Jan 10 '14 at 01:46
-
I researched this for about a week. The closest I got was with [QT](http://qt-project.org/). The project runs in the IDE, but I couldn't get it to build correctly. I also looked into converting c++ to javascript with [Emscripten](https://github.com/kripken/emscripten), but I don't think that's a very good solution. In the end, I think I'm going to be using ASP.Net for my project instead. – apohl Jan 10 '14 at 18:07
-
I'm just wanting to know if there's a good way to call c++ functions from JavaScript? I appreciate any insight. – apohl Jan 17 '14 at 15:28
-
The easiest way I can think of is to use Emscripten to compile the code to JS. – Bartek Banachewicz Jan 17 '14 at 15:35
-
1You should give more details on what you're trying to achieve specifically. It might be of some help: http://www.adobe.com/devnet/air/native-extensions-for-air.html – Loïc Faure-Lacroix Jan 17 '14 at 15:38
-
@LoïcFaure-Lacroix this is a good find, although my project parameters have been changed so I no longer need this solution. Thanks. – apohl Jan 17 '14 at 15:50
-
@BartekBanachewicz when I tried this, I was getting compilation errors with even a simple c++ function. – apohl Jan 17 '14 at 15:51