Hey everyone. I'm trying to figure out how to call a C++ function from javascript. Everywhere I look, I'm just getting web-based answers and that won't help me. I'm working on a program that runs javascript while a machine is running, and I need this script to call a C++ function along the way, but can't figure out how. Any help? Even the most basic answer such as how to get a "Hello world" C++ funtion to run will be sufficient. Thanks!
Non Web-Based JavaScript, call C++ function
Collapse
X
-
Tags: None
-
It runs in the console. Once a machine starts running, it executes a xxx.js file which processes the information. There is no indication on the computer that anything is happening at all. I just need this .js to call on some C++ functions.Comment
-
-
-
There is a funtion in the .js file that causes an arm to move and creates a database recording whther or not it runs in to something. Once the function completes, the robot software requires C++ to create a database and report that records pass/fail results if there were objects that it ran in to. I just need the javascript to call on the C++ scripting at the end of its routine to create the database and report. I don't know what all there is as far as API, other than I use a simple .js to execute commands for the robot and I need it to somehow activate a C++ script.Comment
-
-
I just returned from a meeting on the project, and it turns out that my boss has some code from the company that he held from me. He likes to make me work I guess. Thanks for the input!Comment
Comment