How do you make a program activate a different console application and input values into it?
I'm guessing this is far easier said than done.
Thanks for reading.
How do you make a program activate a different console application and input values into it?
I'm guessing this is far easier said than done.
Thanks for reading.
Depends quite a bit on what you are actually trying to do.
Starting a console program is pretty easy:If you want to pass arguments to it:Code:system("myprog");
However, if you want to interact more than that with the application, it gets more difficult. You need to explain further about what you want to do, if that's the case.Code:system("myprog arg1 arg2");
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Thanks Mat. I still don't know how to input values but its a good start.
Last edited by koxson; 02-06-2009 at 01:25 PM.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.