interrupt handler functions in Visual C++ 6.0
I am writing a DOS program using Microsoft's Visual C++ 6.0 compiler. The program is set up to read the keyboard whenever a key is pressed.
To do this I wrote a function that is designed to be an interrupt handler.
I originlly wrote this function using the Borland C++ 3.1 compiler. In this compiler you can designate a C function to be an interrupt handler by inserting the 'interrupt' keyword between the function's return type and the name of the function, in the function's signature. However, I don't see anything in the Microsoft documentation that allows for functions to be defined as interrupt handlers. Additionally, the 'interrupt' keyword does not exist in the Microsoft complier's vocabulary, as the Borland code will not compile under Visual C++ 6.0.
Does anyone know how to define a function as an interrupt handler using the Microsoft Visual C++ 6.0 compler? I am running Windows 98.