How to bind C++ to Javascript

How to bind C++ to Javascript
0.0 0


Hi everyone,
I’m a cocos2d-x newbie and currently making a small game written by cocos-html5. It runs quite well, and now I want to run it on visual studio instead of Internet browser. Unfortunately, even though checking the source code of all cocos-javascript samples like watermelon_with_me_js or Test_javascript_js I still don’t grasp the idea of bind C++ to Javascript. I created a boot-jsb.js and call it through ScriptingCore::getInstance()->runScript(“boot-jsb.js”), I even edit the project’s property page just exactly like the samples’ property pages settings, but it was no use.
Could you guys provide me any advices