how to control a console application
-
Is there a way to send signals/messages to a console window? I need control the behavior of a console application from another application. I'm not sure if signals or messages is what i'm looking for but i wouldn't like to use pipes or shared memory for this simple task Thanks
-
Is there a way to send signals/messages to a console window? I need control the behavior of a console application from another application. I'm not sure if signals or messages is what i'm looking for but i wouldn't like to use pipes or shared memory for this simple task Thanks
You can redirect it's I/O so that your parent app can read what the child app writes with printf and your parent app can write what the child app receives from scanf. There's a class CRedirector[^] that implements this.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
-
You can redirect it's I/O so that your parent app can read what the child app writes with printf and your parent app can write what the child app receives from scanf. There's a class CRedirector[^] that implements this.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal