Mail Archives: djgpp/2000/01/26/21:34:49
On Wed, 26 Jan 2000 arcadepreserv AT hotmail DOT com wrote:
> I am doing a frontend to an MSdos application, i.e. another msdos
> application is started from my frontend, and I need to decode the
> output from this application.
>
> I think it is possible to trap a interrupt that accurs when a call to
> printf is made, and then read the string a pointer is pointing to.
Don't know if trapping the call helps. It would create a nuisance if not
done properly.
In some of my programs (where I use this same strategy), I write the
back-end so that it redirects the output to a file rather than a screen.
Thenm you'll only need to parse the output file rather than
handling the interrupt each time it occurs. Maybe, this can help.
- Raw text -