Re: Windows Console Output
- Posted by jacques deschĂȘnes <desja at g?o?etrotter.net> Sep 22, 2007
- 538 views
Hi Hayden, If the console app you launch is one that you build yourself in euphoria, then the following procedure would do it. 1) in main application create a named pipe for reading. 2) launch the child app. 3) child app. open the named pipe for writing 4) child app. send all its input to the pipe. 5) child close pipe. 6) child exit. The name of the pipe can be coded in parent and child app if they are build to always work together or the child app can be designed to receive the name of the pipe from its command line arguments. This work as well with console as with gui application. The windows api for pipes is quite simple: http://msdn2.microsoft.com/en-us/library/aa365781.aspx My watch-svr/watch-client debug tool use such a system but it use a mailslot which is a oneway multi-client named pipe. Looking at it can give you some ideas: http://www.rapideuphoria.com/watch-svr.zip regards, Jacques DeschĂȘnes