GUI for console application in c++
-
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
-
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
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?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
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?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
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 :]