Trapping output from a DOS program
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hey guys, I'm writing a windows interface for a DOS program, which needs to trap the output and send keyboard input to the DOS program. I've tried CreateProcess and rerouting stdin and stdout, but to no avail. I think they've coded the DOS interface using direct BIOS calls or writing to screen memory. Is there any way to trap screen output that has been coded in this way? The other problem is sending keypresses to the program - stdin isn't working either. Any clues would be greatly appreciated. Cheers, Paul