Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDestroy CString instance? Pin
Oliver1239-Feb-07 12:49
Oliver1239-Feb-07 12:49 
AnswerRe: Destroy CString instance? Pin
Christian Graus9-Feb-07 13:23
protectorChristian Graus9-Feb-07 13:23 
AnswerRe: Destroy CString instance? Pin
Eytukan9-Feb-07 17:52
Eytukan9-Feb-07 17:52 
AnswerRe: Destroy CString instance? Pin
Joan M9-Feb-07 22:32
professionalJoan M9-Feb-07 22:32 
QuestionWER implementation for Vista. Pin
oleg639-Feb-07 10:28
professionaloleg639-Feb-07 10:28 
AnswerRe: WER implementation for Vista. Pin
led mike9-Feb-07 11:17
led mike9-Feb-07 11:17 
GeneralRe: WER implementation for Vista. Pin
oleg639-Feb-07 11:26
professionaloleg639-Feb-07 11:26 
QuestionNothing else should happen while a while loop is going.. right? Pin
Anthony Mushrow9-Feb-07 9:20
professionalAnthony Mushrow9-Feb-07 9:20 
Okay, there's a game, a while loop, and a timer to make the game go at 60FPS

while(timer > 0) {

/* GAME STUFF */

timer--;
}

When the user presses ESC, it calls a function, or method, whatever you wanna call it. Anyway, inside it is a while loop, like this:

while(true) {

if(user clicks yes)
return 1;

if(user clicks no)
return 0;
}


So it will wait forever for the user to do something, i expected this to stop the game. But after selecting no, to continue the game, stuff has still happened. Falling to the floor for example.

The game also has a pause thing in place, so if Paused == true, nothing happens. I tried adding that to the above while loop, game didn't get paused, player still fell to the floor. Leaving me rather confused.

Anyone have any ideas on this? Anything at all.
AnswerRe: Nothing else should happen while a while loop is going.. right? Pin
David Crow9-Feb-07 9:35
David Crow9-Feb-07 9:35 
GeneralRe: Nothing else should happen while a while loop is going.. right? Pin
Anthony Mushrow9-Feb-07 9:40
professionalAnthony Mushrow9-Feb-07 9:40 
AnswerRe: Nothing else should happen while a while loop is going.. right? Pin
lafleon9-Feb-07 10:30
lafleon9-Feb-07 10:30 
GeneralRe: Nothing else should happen while a while loop is going.. right? Pin
Anthony Mushrow9-Feb-07 10:43
professionalAnthony Mushrow9-Feb-07 10:43 
GeneralRe: Nothing else should happen while a while loop is going.. right? Pin
#realJSOP9-Feb-07 10:55
professional#realJSOP9-Feb-07 10:55 
GeneralRe: Nothing else should happen while a while loop is going.. right? Pin
Anthony Mushrow9-Feb-07 11:01
professionalAnthony Mushrow9-Feb-07 11:01 
GeneralRe: Nothing else should happen while a while loop is going.. right? Pin
led mike9-Feb-07 11:08
led mike9-Feb-07 11:08 
AnswerRe: Nothing else should happen while a while loop is going.. right? [modified] Pin
Waldermort9-Feb-07 11:41
Waldermort9-Feb-07 11:41 
GeneralRe: Nothing else should happen while a while loop is going.. right? [modified] Pin
Anthony Mushrow9-Feb-07 12:09
professionalAnthony Mushrow9-Feb-07 12:09 
Questionillegal use of this type as an expression Pin
hsuch9-Feb-07 8:11
hsuch9-Feb-07 8:11 
AnswerRe: illegal use of this type as an expression Pin
Sceptic Mole9-Feb-07 8:22
Sceptic Mole9-Feb-07 8:22 
GeneralRe: illegal use of this type as an expression Pin
hsuch9-Feb-07 13:43
hsuch9-Feb-07 13:43 
AnswerRe: illegal use of this type as an expression Pin
Chris Losinger9-Feb-07 9:39
professionalChris Losinger9-Feb-07 9:39 
GeneralRe: illegal use of this type as an expression Pin
Michael Dunn9-Feb-07 10:57
sitebuilderMichael Dunn9-Feb-07 10:57 
GeneralRe: illegal use of this type as an expression Pin
Chris Losinger9-Feb-07 11:15
professionalChris Losinger9-Feb-07 11:15 
GeneralRe: illegal use of this type as an expression Pin
Michael Dunn9-Feb-07 11:19
sitebuilderMichael Dunn9-Feb-07 11:19 
QuestionRe: illegal use of this type as an expression Pin
David Crow9-Feb-07 9:42
David Crow9-Feb-07 9:42 

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.