Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralShutdown vs Restart Pin
7-May-02 13:16
suss7-May-02 13:16 
GeneralRe: Shutdown vs Restart Pin
Matt Gullett7-May-02 17:03
Matt Gullett7-May-02 17:03 
QuestionHow do I get a list of NT profiles Pin
CherezZaboro7-May-02 13:05
CherezZaboro7-May-02 13:05 
AnswerRe: How do I get a list of NT profiles Pin
Mike Nordell9-May-02 21:44
Mike Nordell9-May-02 21:44 
GeneralRe: How do I get a list of NT profiles Pin
CherezZaboro10-May-02 4:33
CherezZaboro10-May-02 4:33 
GeneralDelete File Handle Error Pin
Peter Liddle7-May-02 11:36
Peter Liddle7-May-02 11:36 
GeneralRe: Delete File Handle Error Pin
Joaquín M López Muñoz7-May-02 11:52
Joaquín M López Muñoz7-May-02 11:52 
Generalwaiting for a small amount of time Pin
Alex Griffing7-May-02 11:27
Alex Griffing7-May-02 11:27 
I would like to show graphics at a fixed 30 fps.
The only solution I have is:

while (true) {
while (not ready) {
check the performance timer()
}
draw()
}

The problem is that this method pegs the cpu.
I would like to use one of these:
- SetTimer and handle WM_TIMER
- use WaitForSingleObject with a WaitableTimer possibly

but they have too low a resolution.
Can anyone see another solution?

Thanks,
Alex Griffing




GeneralRe: waiting for a small amount of time Pin
Christian Graus7-May-02 11:32
protectorChristian Graus7-May-02 11:32 
GeneralRe: waiting for a small amount of time [slightly corrected] Pin
Joaquín M López Muñoz7-May-02 11:39
Joaquín M López Muñoz7-May-02 11:39 
GeneralVS7 Rant Pin
Todd Smith7-May-02 11:11
Todd Smith7-May-02 11:11 
GeneralRe: VS7 Rant Pin
Tom Archer7-May-02 11:18
Tom Archer7-May-02 11:18 
GeneralRe: VS7 Rant Pin
Tim Smith7-May-02 15:40
Tim Smith7-May-02 15:40 
QuestionHow do I retrieve a list of applications running? Pin
Neil scsn7-May-02 11:06
Neil scsn7-May-02 11:06 
AnswerRe: How do I retrieve a list of applications running? Pin
Todd Smith7-May-02 11:12
Todd Smith7-May-02 11:12 
AnswerRe: How do I retrieve a list of applications running? Pin
Tom Archer7-May-02 11:20
Tom Archer7-May-02 11:20 
AnswerRe: How do I retrieve a list of applications running? Pin
Ravi Bhavnani7-May-02 11:45
professionalRavi Bhavnani7-May-02 11:45 
GeneralBlock Thread while running a child process Pin
Mike Doner7-May-02 10:10
Mike Doner7-May-02 10:10 
GeneralRe: Block Thread while running a child process Pin
Tim Deveaux7-May-02 10:13
Tim Deveaux7-May-02 10:13 
GeneralRe: Block Thread while running a child process Pin
Joaquín M López Muñoz7-May-02 10:14
Joaquín M López Muñoz7-May-02 10:14 
GeneralRe: Block Thread while running a child process Pin
Carlos Antollini7-May-02 10:22
Carlos Antollini7-May-02 10:22 
GeneralRe: Block Thread while running a child process Pin
Mike Doner7-May-02 10:25
Mike Doner7-May-02 10:25 
GeneralCMap question Pin
7-May-02 9:39
suss7-May-02 9:39 
GeneralRe: CMap question Pin
Joaquín M López Muñoz7-May-02 9:48
Joaquín M López Muñoz7-May-02 9:48 
GeneralRe: CMap question Pin
Chris Losinger7-May-02 9:48
professionalChris Losinger7-May-02 9:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.