Thread: Creating GUI
View Single Post
Old Apr 5th, 2006, 8:44 AM   #6
jcdf
Newbie
 
Join Date: Mar 2006
Posts: 3
Rep Power: 0 jcdf is on a distinguished road
Not exactly what I was looking for.

Thanks Ooblo

But I already knew how to do that. I know how you can start a program and pass a number of parameters to it via the command line from the Dos prompt as you have demonstrated. I also know that when a program shuts down it can pass parameters back to the command line. e.g.

int main(void)
{
int x =3;
return x;
}

What I really want to know is how to code a program so that it sents parameters to the command line without having to shut down. Some sort of function call. Also how to code a program to read messages off the command line after the program was started running.

void main (void)
{
code to send to command line: (program.exe My name "is Fred")
code to read from command line: ("whatever happons to be on command line")
}
jcdf is offline   Reply With Quote