You have to launch the 'child' program as a process and use standard input pipe and standard output pipe to send/get the data. Also, be sure to flush the pipes freqüently and do it from different threads if you want to have a non-blocking access to the pipes data. It may sound complicated, but it is very easy to do if you use the freeprocess library from blitzmax (it is included in the default distribution).
I recommend you to take another look to the MaxIde source code, it is not as complicated as it may seem once you get used to all the methods, functions and general usage of the freeprocess library.
EDIT: Usually, debug info goes throug standard error pipe, instead of using standard output pipe
Last edited 2010
|