Date: 12 Nov 92 15:46:10+0800 From: Zhiwei Yang To: Subject: Help: How to catch CTRL-C in applications compiled with djgpp Cc: pem400 AT tcl DOT scl DOT crn DOT cn Hi, I need help for catching CTRL-C in my application compiled with djgpp 1.08. Since go32 runs programs in protected mode, we can't simply modify the DOS interrupt table for catching CTRL-C interrupt. We have to deal with switching between DOS real mode and go32 protect mode for transferring control to our interrupt service function in protected mode when CTRL-C is caught by DOS. Once I've changed go32 for such kind of mode switching. Although it works and serves my purpose, I encounter problem of compiling each new version of go32. And this is not too bad. It is the worst that I have to distribute the modified go32 if I want to distribute my application. I want to know if there are any other wiser method for catch CTRL-C interrupt. Any suggestion will be greatly appreciated! Thanks in advance! ==== Zhiwei Yang