Solved

Sleep and wait for timer in Visual c++

Posted on 1998-10-17
1
1,610 Views
Last Modified: 2012-06-21
I'd like to make my app sleep until it recieves a timer message. How should I code it to ensure hardly any processor time is taken up when my app is sleeping.
0
Comment
Question by:coles01
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 1175390
Well, if you want to wait for a timer message, the API of choice will be 'MsgWaitForForMultipleObjects()' or 'MsgWaitForForMultipleObjectsEx()'
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

837 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