Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I would like to know is there a way to combine C++ and javascript. That means one file from c++ and other from javascript or can call to javascript from C++ functions. The platform is windiws7
Posted
Comments
Sergey Alexandrovich Kryukov 14-Mar-11 0:21am    
Strange idea; and the purpose?
--SA

I've never tried these but check out:
- JavaScript call from C++[^] - article from the CodeProject archive.
- CLIPP library[^] - see this example[^].
 
Share this answer
 
The layer of communication you will have to write is massive.

Can you solve the problem using a higher level language like C# or VB becuase then you can use asp.net and web services. Or even using Silverlight or flash

If this function has more to do with what javascript does , you might want to consider writing a browser plugin to achieve a solution
 
Share this answer
 
Comments
Stephen Hewitt 14-Mar-11 5:21am    
Not really. Microsoft have provided COM-based scipting engines for VBScript and JScript for some time.
You can embed a JavaScript engine like Google V8 or Mozilla SpiderMonkey in your application. See: http://code.google.com/intl/fi-FI/apis/v8/embed.html[^] and https://developer.mozilla.org/en/JavaScript_C_Engine_Embedder%27s_Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900