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. GUI for console application in c++

GUI for console application in c++

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionc++javacom
3 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
    Newbie00
    wrote on last edited by
    #1

    1. I've got some application written in Java. 2. I don't want to interfere in the program's source code 3. This application works on Win 2k using cmd.exe only. It doesn't have graphics interface. I can start it directly with cmd.exe, or by using the bat file. 4. My question is: Can I get in the console application from outside? I mean, Is it possible to take it on with some other program (lets say some kind of strap) working in GUI? I would like to launch my new strap written in c++ whereby I could not only start the given console application but also work on it sending/receiving data/commands. Which functions/librarys should I use? For example: Using CreateProcess I could possibly start the application in cmd.exe, but what next? How to cooperate with it? 5. I tried to use http://www.codeproject.com/useritems/ConsoleAdapter.asp[^] , but system commands sent to such a console haven't work, also attaching to cmd.exe haven't helped. 6. I don't know exacly which forum should I use to ask about my problem, so be patient with me, and give me bearing to proper one. Please, give me some advice, and sorry for my pure :] yyy rather poor English

    D 1 Reply Last reply
    0
    • N Newbie00

      1. I've got some application written in Java. 2. I don't want to interfere in the program's source code 3. This application works on Win 2k using cmd.exe only. It doesn't have graphics interface. I can start it directly with cmd.exe, or by using the bat file. 4. My question is: Can I get in the console application from outside? I mean, Is it possible to take it on with some other program (lets say some kind of strap) working in GUI? I would like to launch my new strap written in c++ whereby I could not only start the given console application but also work on it sending/receiving data/commands. Which functions/librarys should I use? For example: Using CreateProcess I could possibly start the application in cmd.exe, but what next? How to cooperate with it? 5. I tried to use http://www.codeproject.com/useritems/ConsoleAdapter.asp[^] , but system commands sent to such a console haven't work, also attaching to cmd.exe haven't helped. 6. I don't know exacly which forum should I use to ask about my problem, so be patient with me, and give me bearing to proper one. Please, give me some advice, and sorry for my pure :] yyy rather poor English

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

      Newbie00 wrote:

      Can I get in the console application from outside? I mean, Is it possible to take it on with some other program (lets say some kind of strap) working in GUI? I would like to launch my new strap written in c++ whereby I could not only start the given console application but also work on it sending/receiving data/commands. Which functions/librarys should I use?

      See here and here.


      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

      "Judge not by the eye but by the heart." - Native American Proverb

      N 1 Reply Last reply
      0
      • D David Crow

        Newbie00 wrote:

        Can I get in the console application from outside? I mean, Is it possible to take it on with some other program (lets say some kind of strap) working in GUI? I would like to launch my new strap written in c++ whereby I could not only start the given console application but also work on it sending/receiving data/commands. Which functions/librarys should I use?

        See here and here.


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        N Offline
        N Offline
        Newbie00
        wrote on last edited by
        #3

        Thanks, I've used the first link (you had given me) to my project and it works I can write/read commands to CMD.exe by clicking buttons :]. All I've to do now is to prepare appropriate commands, and I think, I'll be able to use the application, that I'd mentioned in my question. that's great thanks again for your reply :]

        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