timers in a console app
-
How do i setup timers in a console application? Is it possible? does anyone know any tutorial on this matter? Thanks
-
It is fairly simple. Take a look at the MSDN documentation for CreateTimerQueueTimer()
led mike
-
How do i setup timers in a console application? Is it possible? does anyone know any tutorial on this matter? Thanks
See here.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac
-
See here.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac
-
How do i setup timers in a console application? Is it possible? does anyone know any tutorial on this matter? Thanks
You can also use
SetTimer
using a callback function. The only tricky bit is that you need to run a message pump as this is where timer callbacks are performed; most people don't know this and since must apps are GUI the lack causes no problems.Steve
-
Second time this has happened eh? I say TimerQueueTimer and you say WaitableTimer. 6 to one tomatoes to another. :laugh:
led mike
Either one would work ... I've just used WaitableTimers more than TimerQueues so I knew that one off-hand.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac