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. How to get the result of Jar file into the Visual C++ application

How to get the result of Jar file into the Visual C++ application

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 Posts 2 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.
  • N Offline
    N Offline
    Nikhil Trivedi
    wrote on last edited by
    #1

    I want to built a DLL in which we can pass parameters to call a jar file and the return values of the Jar file should be available to the calling application. Do anyone know How to perform this ? Thanks in advance. Nikhs Nikhil Trivedi

    D 1 Reply Last reply
    0
    • N Nikhil Trivedi

      I want to built a DLL in which we can pass parameters to call a jar file and the return values of the Jar file should be available to the calling application. Do anyone know How to perform this ? Thanks in advance. Nikhs Nikhil Trivedi

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Nikhil Trivedi wrote:

      ...pass parameters to call a jar file...

      What do you mean by "call a jar file?"


      "A good athlete is the result of a good and worthy opponent." - David Crow

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      N 1 Reply Last reply
      0
      • D David Crow

        Nikhil Trivedi wrote:

        ...pass parameters to call a jar file...

        What do you mean by "call a jar file?"


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        N Offline
        N Offline
        Nikhil Trivedi
        wrote on last edited by
        #3

        DavidCrow wrote:

        What do you mean by "call a jar file?

        I meant to say that I want to unpack(Execute) a jar file from visual C++ app. and then get the result in the visual c++ for furthur processing. Suppose I am using jar file to generate an auth. number by passing a variable to the jar file, and want the auth number back in the visual c++ app. so that I can process it according to my requirement. Thanks for your answer. Nikhs Nikhil Trivedi

        D 1 Reply Last reply
        0
        • N Nikhil Trivedi

          DavidCrow wrote:

          What do you mean by "call a jar file?

          I meant to say that I want to unpack(Execute) a jar file from visual C++ app. and then get the result in the visual c++ for furthur processing. Suppose I am using jar file to generate an auth. number by passing a variable to the jar file, and want the auth number back in the visual c++ app. so that I can process it according to my requirement. Thanks for your answer. Nikhs Nikhil Trivedi

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Nikhil Trivedi wrote:

          I meant to say that I want to unpack(Execute) a jar file from visual C++ app. and then get the result in the visual c++ for furthur processing.

          Use CreateProcess() for this.


          "A good athlete is the result of a good and worthy opponent." - David Crow

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          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