0

I have a HTML5 application that serves as a menu for particular C++ games.

As of the moment, I'm using:

var ws = new ActiveXObject("WScript.Shell");
ws.Exec(this.GAME_PATH); 

This is from my HTML5 application to run a C++ game when a button a press. I want for both applications to have a connection and real-time data communication. Any suggestions?

2 Answers 2

2

You could use Apache Thrift to make the near real-time communication between C++ and JavaScript (or Node.js) See http://thrift.apache.org/

I don't have experience using Apache Thrift with c++ but it works well fore me with JAVA.

Sign up to request clarification or add additional context in comments.

Comments

1

Qt also has support for exposing C++ objects to javascript. See http://qt-project.org/doc/qt-4.8/qtwebkit-bridge.html.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.