delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/07/20:49:32

Date: Sun, 7 Dec 1997 20:44:49 -0500 (EST)
From: "H. Anthony Hoyt" <hahoyt AT eng2 DOT uconn DOT edu>
Reply-To: "H. Anthony Hoyt" <hahoyt AT eng2 DOT uconn DOT edu>
To: DJGPP Mailing List <djgpp AT delorie DOT com>
Subject: Takeing over interupt handlers
Message-Id: <Pine.SUN.3.95.971205111517.18740A-100000@lurch-fddi>
Mime-Version: 1.0

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
@}->--'--,---



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019