Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBest sleep() method in while loop? Pin
notiter12-Feb-09 0:15
notiter12-Feb-09 0:15 
AnswerRe: Best sleep() method in while loop? Pin
_AnsHUMAN_ 12-Feb-09 0:26
_AnsHUMAN_ 12-Feb-09 0:26 
AnswerRe: Best sleep() method in while loop? Pin
Eytukan12-Feb-09 0:38
Eytukan12-Feb-09 0:38 
AnswerRe: Best sleep() method in while loop? Pin
Roger Stoltz12-Feb-09 1:30
Roger Stoltz12-Feb-09 1:30 
GeneralRe: Best sleep() method in while loop? Pin
Eytukan12-Feb-09 2:25
Eytukan12-Feb-09 2:25 
GeneralRe: Best sleep() method in while loop? Pin
Roger Stoltz12-Feb-09 2:40
Roger Stoltz12-Feb-09 2:40 
AnswerRe: Best sleep() method in while loop? Pin
Rajesh R Subramanian12-Feb-09 3:33
professionalRajesh R Subramanian12-Feb-09 3:33 
GeneralRe: Best sleep() method in while loop? Pin
Roger Stoltz12-Feb-09 4:02
Roger Stoltz12-Feb-09 4:02 
Rajesh R Subramanian wrote:
you must do such things on a separate thread, like everyone else said.


Ummm, no, I did not. Wink | ;)
In fact I said the opposite based on what it seems like he's trying to do.
His whole while-loop is an attempt to create timer-functionality and "count seconds".
He'd better correct the root cause and use a timer instead of still doing the wrong thing, but disguising it in a thread.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Best sleep() method in while loop? Pin
Rajesh R Subramanian12-Feb-09 4:46
professionalRajesh R Subramanian12-Feb-09 4:46 
GeneralRe: Best sleep() method in while loop? Pin
Eytukan12-Feb-09 6:05
Eytukan12-Feb-09 6:05 
QuestionSplitter window with RichEditView Pin
gopalraja12-Feb-09 0:06
gopalraja12-Feb-09 0:06 
AnswerRe: Splitter window with RichEditView Pin
Stuart Dootson12-Feb-09 0:31
professionalStuart Dootson12-Feb-09 0:31 
QuestionHow do we Inherit struct from another struct in IDL file Pin
Gopal_Kanchana11-Feb-09 23:44
Gopal_Kanchana11-Feb-09 23:44 
AnswerRe: How do we Inherit struct from another struct in IDL file Pin
CPallini12-Feb-09 0:09
mveCPallini12-Feb-09 0:09 
GeneralRe: How do we Inherit struct from another struct in IDL file Pin
Gopal_Kanchana12-Feb-09 0:18
Gopal_Kanchana12-Feb-09 0:18 
GeneralRe: How do we Inherit struct from another struct in IDL file Pin
CPallini12-Feb-09 0:30
mveCPallini12-Feb-09 0:30 
Questionstring replacement using c preprocessor Pin
tarcairion11-Feb-09 22:43
tarcairion11-Feb-09 22:43 
AnswerRe: string replacement using c preprocessor Pin
Iain Clarke, Warrior Programmer11-Feb-09 22:52
Iain Clarke, Warrior Programmer11-Feb-09 22:52 
GeneralRe: string replacement using c preprocessor Pin
tarcairion11-Feb-09 23:04
tarcairion11-Feb-09 23:04 
GeneralRe: string replacement using c preprocessor Pin
Stuart Dootson11-Feb-09 23:28
professionalStuart Dootson11-Feb-09 23:28 
AnswerRe: string replacement using c preprocessor Pin
Naveen11-Feb-09 23:10
Naveen11-Feb-09 23:10 
GeneralRe: string replacement using c preprocessor Pin
tarcairion11-Feb-09 23:34
tarcairion11-Feb-09 23:34 
GeneralRe: string replacement using c preprocessor Pin
Naveen11-Feb-09 23:41
Naveen11-Feb-09 23:41 
AnswerRe: string replacement using c preprocessor Pin
Stuart Dootson11-Feb-09 23:13
professionalStuart Dootson11-Feb-09 23:13 
GeneralRe: string replacement using c preprocessor Pin
tarcairion11-Feb-09 23:37
tarcairion11-Feb-09 23:37 

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.