Click to See Complete Forum and Search --> : Timer ISER


ionutdinulescu
March 22nd, 2005, 05:00 AM
I´m trying to make a timer isr

void interrupt (*oldhandler)(...);
void interrupt far timerISR(...)
{
cout << "Timer ISR";
}

void()
{
oldhandler = getvect(8);
setvect(8, timerISR);
while (true);
}

The code above doesn´t seem to work, the new timer isr is never executed.
Im using BCC and run the code above in a command window under XP.
I also tried to run it after booting to DOS, but hopeless.
Can anyone help me