Mail Archives: djgpp/1999/07/12/05:36:25.1
Sahab Yazdani wrote in message <37893502 DOT 9FB263CB AT geocities DOT com>...
>okay, first I wrote a keyboard handling class in C++, and every thing
>seemed to go okay, now I have a funny implementation of it, for instance
>(extremely simplified code):
>
<snip>
>
>The funny thing is that the first call to GetKeyPressed works, but the
>second one doesn't (the one thats in the function). No matter which key
>you press it crashes, and it destroys the DOS box along with it (because
>windows notices that the interrupt handler hasn't been released). A
>person that I asked said that the keyboard interrupt address has
>changed???? Anyways any help would be greatly appriecited. If you want
>some source code, plz just e-mail!
Sounds like you're not signalling the end of the interrupt. If that is the
case then just put this line at the end of the interrupt handler.
outportb (0x20, 0x20);
For a working C++ keyboard handler see my webpage
(http://www.reggin.freeserve.co.uk/ in the snippets section)
Michael Stewart
- Raw text -