justinng
asked on
Question on Delays
Hi there,
Which function in MFC programming can I use to generate delays? I wanted to have a delay of about a second or so between the execution of 2 instructions. How can I also generate a microseconds delay?
Any help offered is very much appreciated!
Which function in MFC programming can I use to generate delays? I wanted to have a delay of about a second or so between the execution of 2 instructions. How can I also generate a microseconds delay?
Any help offered is very much appreciated!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Add a timer to your program and use the WM_TIMER handler. Use the ClassWizard to add the handler. And use SetTimer/KillTimer to set the timer duration.