
Need timer help to execute routine.
Jt,
If you timer needs are fairly low priority, then you may want to consider
creating a hidden window, implementing the msg pump, and use the
SetTimer/KillTimer API calls and the WM_TIMER message. Note - you don't have to
explicitly respond to the WM_TIMER message - you can use a callback -- see the
documentation on the Windows API SetTimer function.
If you need more precision, have a look at multimedia timers. Consider the
following link:
http://msdn.microsoft.com/library/en-us/dllproc/base/using_waitable_t...
s.asp
best regards
roy fine
Quote:
> Ref VC6.0
> I need to create a timer to call a routine every so many seconds. Also, need
> to stop and start the timer again when it enters the routine. My application
> is just a win32 console app.
> I don't have any ideas where to look. I couldn't even find anything on a
> timer control.
> A good C src example would be great to show me how.
> Thanks,
> Jt