Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcstring heap error Pin
Amit Jain23-Aug-01 11:28
Amit Jain23-Aug-01 11:28 
GeneralRe: cstring heap error Pin
Chris Losinger23-Aug-01 11:33
professionalChris Losinger23-Aug-01 11:33 
GeneralRe: cstring heap error Pin
Amit Jain23-Aug-01 13:58
Amit Jain23-Aug-01 13:58 
GeneralRe: cstring heap error Pin
Bret Faller23-Aug-01 14:37
Bret Faller23-Aug-01 14:37 
GeneralRe: cstring heap error Pin
Amit Jain23-Aug-01 14:41
Amit Jain23-Aug-01 14:41 
GeneralRe: cstring heap error Pin
Amit Jain23-Aug-01 16:36
Amit Jain23-Aug-01 16:36 
QuestionDirect input 8? Pin
23-Aug-01 10:32
suss23-Aug-01 10:32 
AnswerRe: Direct input 8? Pin
Christian Graus23-Aug-01 12:28
protectorChristian Graus23-Aug-01 12:28 
If you're getting a super frame rate, calling this function when you draw a frame could mean it's getting called a LOT. I don't see any problem with your code, but what you should do is use timeGetTime() to track how long it's been since you last checked key status, and move your ship by an amount that takes this into account. Otherwise the movement speed will be erratic depending on your frame rate, and different from one machine to the next. The same is true of all movement that occurs.

Does your program draw OK if you DON'T check the keyboard input ? I'd be checking other areas, and for the crash ( have you gone into the debugger to see *where* the crash is occuring ), I'd make sure that you've not got values spiralling out of control somewhere.

Christian

As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.

Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
GeneralRe: Direct input 8? Pin
24-Aug-01 0:23
suss24-Aug-01 0:23 
GeneralBYREF from VB to VC DLL HELP! Pin
23-Aug-01 7:45
suss23-Aug-01 7:45 
GeneralCDialog problem on Windows 2000 Pin
Craig Miller23-Aug-01 7:37
Craig Miller23-Aug-01 7:37 
GeneralRe: CDialog problem on Windows 2000 Pin
CodeGuy23-Aug-01 10:52
CodeGuy23-Aug-01 10:52 
GeneralRe: CDialog problem on Windows 2000 Pin
Craig Miller23-Aug-01 12:44
Craig Miller23-Aug-01 12:44 
GeneralCDialogBar buttons. Pin
John Uhlenbrock23-Aug-01 7:22
John Uhlenbrock23-Aug-01 7:22 
GeneralRe: CDialogBar buttons. Pin
Tomasz Sowinski23-Aug-01 7:24
Tomasz Sowinski23-Aug-01 7:24 
GeneralPATH AND REGION : HELP Pin
23-Aug-01 7:21
suss23-Aug-01 7:21 
GeneralRe: PATH AND REGION : HELP Pin
23-Aug-01 7:43
suss23-Aug-01 7:43 
GeneralRe: PATH AND REGION : HELP Pin
Christian Graus23-Aug-01 12:34
protectorChristian Graus23-Aug-01 12:34 
GeneralTracking the mouse Pin
Bret Faller23-Aug-01 7:12
Bret Faller23-Aug-01 7:12 
GeneralRe: Tracking the mouse Pin
CodeGuy23-Aug-01 11:00
CodeGuy23-Aug-01 11:00 
GeneralRe: Tracking the mouse Pin
Bret Faller23-Aug-01 11:25
Bret Faller23-Aug-01 11:25 
GeneralRe: Tracking the mouse Pin
CodeGuy23-Aug-01 11:31
CodeGuy23-Aug-01 11:31 
GeneralRe: Tracking the mouse Pin
Bret Faller23-Aug-01 11:33
Bret Faller23-Aug-01 11:33 
GeneralRe: Tracking the mouse Pin
Bret Faller23-Aug-01 11:46
Bret Faller23-Aug-01 11:46 
GeneralRe: Tracking the mouse Pin
CodeGuy24-Aug-01 3:57
CodeGuy24-Aug-01 3:57 

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.