How to run a external program and continuous passing variables to it?

  • Thread starter Thread starter YuShiuan
  • Start date Start date
Y

YuShiuan

Guest
I had two Win32 applications, both are developed by VC+.

The first one is the called program, and with a loop structure. It allow continuous receiving string and do something until the received string is "EXIT".

The second one is the caller program, it will execute the fist program by CreateProcess(). I want it can hold the process, and let user continuous key-in string like "RUN", "EXIT", all of these string may pass to the called program, and I will fetch the response from called program, then record it.


My question is:

How to keep the process alive, and I could control it anytime I want?

Continue reading...
 
Back
Top