Archived

This topic is now archived and is closed to further replies.

wep

Interrupt Service Routine in Win32 console app

Recommended Posts

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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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--

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites