Re: Exiting a windows Program?
- From: "Brian Muth" <bmuth@xxxxxxxx>
- Date: Sun, 4 Dec 2005 15:08:02 -0800
> 4. Using a for() loop as a timer is a really bad idea. If you want your
> program to
> wait for a period of time, use the Sleep() API call
Bad advice.
This will freeze the window and prevent it from updating since the message
queue is not being pumped. The OP needs to use SetTimer.
Brian
.
- References:
- Re: Exiting a windows Program?
- From: James Brown
- Re: Exiting a windows Program?
- Prev by Date: Re: CTime::Format
- Next by Date: Re: What happened to clrscr(); in C++?
- Previous by thread: Re: Exiting a windows Program?
- Next by thread: Re: Exiting a windows Program?
- Index(es):
Relevant Pages
|