The Multimedia Timers API is incredibly easy to use. Look at timeSetEvent in the MSDN. Just specify a period, resolution and callback—it's that simple!
The ietimer.ocx allows you to set the time in msec.
The ocx comes with Visual C++, and can be added to the tool
bar in your resource editor. From there, you can add it
to your dalog box (similar to adding a buton).
The maximum time that you can set is something like 65000 (65 sec). You can ovecome this by using a counter in your onTimer event function and reset the timer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.