Re: Exiting a windows Program?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



> 4. Using a for() loop as a timer is a really bad idea. If you want your
> program to
> wait for a period of time, use the Sleep() API call

Bad advice.

This will freeze the window and prevent it from updating since the message
queue is not being pumped. The OP needs to use SetTimer.

Brian


.



Relevant Pages