Link to home
Start Free TrialLog in
Avatar of justinng
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!
ASKER CERTIFIED SOLUTION
Avatar of Bridge
Bridge

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fstab
fstab

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.