Date: Sun, 7 Dec 1997 20:44:49 -0500 (EST) From: "H. Anthony Hoyt" Reply-To: "H. Anthony Hoyt" To: DJGPP Mailing List Subject: Takeing over interupt handlers Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk I know this is more of a C++ thing then an DJGPP thing but I though I might give the croud a shot at this. I have a Keyboard class which I want to use to take over the keyboard interupt 0x09. So I create an instance of _go32_dpmi_seginfo for the old handler and my new one. I then _Try_ to get the segment:offset address for my handler and then set my function as the new handler. Well In created a test function that shout print what key is currently pressed but when I run it, and hit a few keys, nothing happends. Now I've tried everything I could to get the new handler installed past the old one but I can't seem to get it right. Is it possable to override an interupt with a C++ class function? Or do I have to do it in regular C and bear with it? Well, I know I must have confused everyone know about what I want so I'll stop. But if you think you know what I'm talking about, e-mail me. Please. Tony May you find strength in magic, so that you may find your life magical. -- RavenHart @}->--'--,---