Solved

Sleep and wait for timer in Visual c++

Posted on 1998-10-17
1
1,603 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

744 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

12 Experts available now in Live!

Get 1:1 Help Now