Interrupt Service Routine in Win32 console app

Started by
2 comments, last by wep 22 years, 8 months ago
hi, i am converting a real mode dos app to a win32 console app. my dos app programs the Real Time Clock (RTC) to call my own interrupt service routine every so many clock ticks. i can make stuff happen in the background like this. how should i do this in a win32 console app? can i define a timer and hook a function to it? since i am timing music with this the use of the RTC is vital. hope you can help me. thanks wep WeP http://www.planetzztpp.com Edited by - wep on August 14, 2001 2:04:28 PM
WePhttp://www.planetzztpp.com
Advertisement
Well, there is a function to set a timer,
and you can tie a callback function or get a
WM_TIMER message from it .... But it''s not
as precise as the RTC, and it can''t do very
small intervals (eg: 1 ms won''t work)

-- This statement is False--
Check out Multimedia Timers in MSDN, they support higher resolutions than the SetTimer function.
great!

right now i''ve set it up so that my own isr is called 18.2 times per second. i need that resolution now because the timer interrupt is used also to update the system clock. if i could use another timer (not connected to the system clock) it wouldn''t have to be so fast.

thanks guys..

wep
WePhttp://www.planetzztpp.com

This topic is closed to new replies.

Advertisement