Solved

Question on Delays

Posted on 1998-11-12
2
202 Views
Last Modified: 2013-11-20
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!
0
Comment
Question by:justinng
2 Comments
 
LVL 1

Accepted Solution

by:
Bridge earned 20 total points
ID: 1324609
sleep
0
 
LVL 1

Expert Comment

by:fstab
ID: 1324610
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.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now