PDA

Click to See Complete Forum and Search --> : Getting the text from a DOS console window.


Dec 24th, 2000, 04:51 PM
Hello,
I am making a program that shells the Borland C++ 5.5 compiler, using ShellExecute... and the question is.. how do I get the output? what was "written" in the console window?

And another question. How do I make the application wait until the console window is closed before continuing??


Thanks,
Dennis Wrenn

PS: I am not as concerned about this... but how do you use vectors?

Dec 26th, 2000, 08:37 PM
I think you have to set the current directory first.

Dec 26th, 2000, 09:08 PM
Thanks, how do I do that?

I know it's

cd dir

in dos, but how do I do it with shellexecute?

Jop
Jan 4th, 2001, 09:16 AM
Use the SetCurrentDirectory API dennis!

Jan 4th, 2001, 02:16 PM
Thanks Jop! but I don't think thats the problem...
I asked parksie a while ago.. and he said the reason was, that when you use shellexecute, you are opening the actuall program, and it doesn't recognize >

but the MSDOS console does.

So... I have to learn how to use CreateProccess, and use that....

Jop
Jan 4th, 2001, 07:07 PM
I'm a VC++ newbie, so I didn't quite understood the problem ;)

but I'm sure I'll learn VC++ in less then 9 months (as well as I did with VB ;))