Can I use Javascript function in VC++?
-
Dear All, I have VC++ windows application. I want to use some javascript functions in the above mentioned application. If Yes, Please let me know how I can do it? with little bit sample code or some articles. :) With Regards
-
Dear All, I have VC++ windows application. I want to use some javascript functions in the above mentioned application. If Yes, Please let me know how I can do it? with little bit sample code or some articles. :) With Regards
Technically, yes. That is, in a hosted iexplore AciveX. This code can even interact with your C++ code by calling its functions (and vice versa). Search MSDN for something like "custom menu explorer" (without quotes).
-
Dear All, I have VC++ windows application. I want to use some javascript functions in the above mentioned application. If Yes, Please let me know how I can do it? with little bit sample code or some articles. :) With Regards
-
Dear VivekuniQ If I made a mistake, I am really sorry for that. I am very weak in English, Please let me know my mistake, if its in English, Please also let me know how I can improve it. :zzz: Thanks & Regards Manoj
-
Technically, yes. That is, in a hosted iexplore AciveX. This code can even interact with your C++ code by calling its functions (and vice versa). Search MSDN for something like "custom menu explorer" (without quotes).
Thanks you a lot. I have a simple calculation method which does not have interaction with Internet Explorer, Events etc. Can I run javascript without Internet Explorer or hosted iexplore ActiveX. :) Thanks & Regards Manoj
-
Dear All, I have VC++ windows application. I want to use some javascript functions in the above mentioned application. If Yes, Please let me know how I can do it? with little bit sample code or some articles. :) With Regards
I dont know anything like that can be done or not but u can use an IE object and then try running the script Vikas Amin Embin Technology Bombay
-
Thanks you a lot. I have a simple calculation method which does not have interaction with Internet Explorer, Events etc. Can I run javascript without Internet Explorer or hosted iexplore ActiveX. :) Thanks & Regards Manoj
To execute javascript you need a script interpreter. You can get this using the ActiveX script host control. However, this is really intended for embedding scripting into your application and is quite complex to use. If your method is simple, you'd be better to simply port it to C++. Alternatively, write your application in javascript? What does C++ bring that you need for your application? Kev
-
Dear All, I have VC++ windows application. I want to use some javascript functions in the above mentioned application. If Yes, Please let me know how I can do it? with little bit sample code or some articles. :) With Regards
manojk_batra wrote:
I have VC++ windows application. I want to use some javascript functions in the above mentioned application. If Yes, Please let me know how I can do it? with little bit sample code or some articles.
It's probably not simple to set it up, but anyway ... http://users.skynet.be/saw/SpiderMonkey.htm[^] http://egachine.berlios.de/embedding-sm-best-practice/embedding-sm-best-practice-index.html[^]