Click here to Skip to main content
15,889,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can someone give a detail of this sample coder why the result is 9,and not 4?? Pin
Hristo-Bojilov20-Jun-10 6:23
Hristo-Bojilov20-Jun-10 6:23 
GeneralRe: Can someone give a detail of this sample coder why the result is 9,and not 4?? Pin
Luc Pattyn20-Jun-10 11:04
sitebuilderLuc Pattyn20-Jun-10 11:04 
AnswerRe: Can someone give a detail of this sample coder why the result is 9,and not 4?? - sorta repost Pin
Iain Clarke, Warrior Programmer21-Jun-10 0:26
Iain Clarke, Warrior Programmer21-Jun-10 0:26 
QuestionHow to find the correct coordinate? Pin
hasani200720-Jun-10 4:28
hasani200720-Jun-10 4:28 
AnswerRe: How to find the correct coordinate? Pin
Niklas L21-Jun-10 0:44
Niklas L21-Jun-10 0:44 
Questiona problem in maze (the worm pass the walls) Pin
hasani200720-Jun-10 0:25
hasani200720-Jun-10 0:25 
AnswerRe: a problem in maze (the worm pass the walls) Pin
Hristo-Bojilov20-Jun-10 0:45
Hristo-Bojilov20-Jun-10 0:45 
AnswerRe: a problem in maze (the worm pass the walls) Pin
Aescleal20-Jun-10 0:54
Aescleal20-Jun-10 0:54 
You're not erasing where the "worm" is when you draw the new one on the screen and you're not testing where the new worm head is and ending the game (if that's the rule) when the worms head hits a wall. To get round these problems:

- You can deal with the extra drawing by overwriting the worm's current position with spaces after you poll the keyboard but before you change the position of the worm.

- When you change the worm's position do a check to see if the new position overwrites a 1 in your maze. If it does, end the game.

Cheers,

Ash
GeneralRe: a problem in maze (the worm pass the walls) Pin
hasani200720-Jun-10 1:10
hasani200720-Jun-10 1:10 
QuestionHow to get flash handle(ocx) in bho Pin
ZEROFIELD19-Jun-10 16:24
ZEROFIELD19-Jun-10 16:24 
AnswerCrosspost Pin
Richard MacCutchan19-Jun-10 21:28
mveRichard MacCutchan19-Jun-10 21:28 
QuestionWMI getting IP-Address [modified] Pin
Marcel Vogt19-Jun-10 4:23
Marcel Vogt19-Jun-10 4:23 
AnswerSuggestion Pin
Baltoro19-Jun-10 8:52
Baltoro19-Jun-10 8:52 
GeneralRe: Suggestion Pin
Marcel Vogt19-Jun-10 8:59
Marcel Vogt19-Jun-10 8:59 
GeneralRe: Suggestion Pin
Baltoro19-Jun-10 9:16
Baltoro19-Jun-10 9:16 
AnswerRe: WMI getting IP-Address Pin
Luc Pattyn19-Jun-10 9:26
sitebuilderLuc Pattyn19-Jun-10 9:26 
AnswerRe: WMI getting IP-Address Pin
Hristo-Bojilov20-Jun-10 3:44
Hristo-Bojilov20-Jun-10 3:44 
QuestionWhich is faster? Pin
Code-o-mat19-Jun-10 0:48
Code-o-mat19-Jun-10 0:48 
AnswerRe: Which is faster? Pin
Aescleal19-Jun-10 0:55
Aescleal19-Jun-10 0:55 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 1:00
Code-o-mat19-Jun-10 1:00 
GeneralRe: Which is faster? [modified] Pin
Code-o-mat19-Jun-10 5:16
Code-o-mat19-Jun-10 5:16 
GeneralRe: Which is faster? Pin
Aescleal19-Jun-10 6:10
Aescleal19-Jun-10 6:10 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 6:12
Code-o-mat19-Jun-10 6:12 
GeneralRe: Which is faster? Pin
Aescleal19-Jun-10 6:36
Aescleal19-Jun-10 6:36 
GeneralRe: Which is faster? Pin
Code-o-mat19-Jun-10 6:53
Code-o-mat19-Jun-10 6:53 

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.