Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Can I use Javascript function in VC++?

Can I use Javascript function in VC++?

Scheduled Pinned Locked Moved C / C++ / MFC
c++javascriptquestion
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    manojk_batra
    wrote on last edited by
    #1

    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

    D E V S 4 Replies Last reply
    0
    • M manojk_batra

      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

      D Offline
      D Offline
      Dennis Gourjii
      wrote on last edited by
      #2

      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).

      M 1 Reply Last reply
      0
      • M manojk_batra

        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

        E Offline
        E Offline
        Eytukan
        wrote on last edited by
        #3

        [Message Deleted]

        M 1 Reply Last reply
        0
        • E Eytukan

          [Message Deleted]

          M Offline
          M Offline
          manojk_batra
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • D Dennis Gourjii

            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).

            M Offline
            M Offline
            manojk_batra
            wrote on last edited by
            #5

            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

            L 1 Reply Last reply
            0
            • M manojk_batra

              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

              V Offline
              V Offline
              vikas amin
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • M manojk_batra

                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

                L Offline
                L Offline
                lemur2
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • M manojk_batra

                  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

                  S Offline
                  S Offline
                  SilentSilent
                  wrote on last edited by
                  #8

                  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[^]

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups