|
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")
}
|