Click here to Skip to main content
15,890,365 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with arrays Pin
Chidori-chan13-Dec-09 10:16
Chidori-chan13-Dec-09 10:16 
GeneralRe: Help with arrays Pin
Richard MacCutchan13-Dec-09 10:26
mveRichard MacCutchan13-Dec-09 10:26 
GeneralRe: Help with arrays Pin
LunaticFringe13-Dec-09 10:29
LunaticFringe13-Dec-09 10:29 
QuestionVisual C++ Drag and Drop and get filename and complete path Pin
ilu200713-Dec-09 6:54
ilu200713-Dec-09 6:54 
AnswerRe: Visual C++ Drag and Drop and get filename and complete path Pin
ilu200713-Dec-09 10:29
ilu200713-Dec-09 10:29 
AnswerRe: Visual C++ Drag and Drop and get filename and complete path Pin
Nelek15-Dec-09 20:51
protectorNelek15-Dec-09 20:51 
QuestionSpacebar: Animating a Circle to move across the screen, instead of jumping Pin
Chidori-chan12-Dec-09 21:30
Chidori-chan12-Dec-09 21:30 
AnswerRe: Spacebar: Animating a Circle to move across the screen, instead of jumping Pin
Cedric Moonen12-Dec-09 22:16
Cedric Moonen12-Dec-09 22:16 
Your code is not very clear but it seems you are trying to move your circle inside a for loop (even if this loop is empty). That's not going to work: you need to render the full scene each time something change or at a specific time rate (which is usually used for games). As you have one single thread (and you shouldn't have more in this situation), your for loop will prevent any redrawing on the screen (thus, you see a jump). You need to keep a flag that specifies if the circle is moving or not and if this flag is set, you ahve to update the circle position at each frame depending on the elapsed time.

If your program is written in C++ (and not pure C), I suggest you take a look at my signature for the OpenGL tutorial. All these things are explained but you need to have a good background in C++.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Spacebar: Animating a Circle to move across the screen, instead of jumping Pin
Chidori-chan13-Dec-09 8:32
Chidori-chan13-Dec-09 8:32 
QuestionUsing RFX_Text_Bulk Pin
Larry Mills Sr12-Dec-09 13:35
Larry Mills Sr12-Dec-09 13:35 
AnswerRe: Using RFX_Text_Bulk Pin
Richard MacCutchan12-Dec-09 23:12
mveRichard MacCutchan12-Dec-09 23:12 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr13-Dec-09 3:02
Larry Mills Sr13-Dec-09 3:02 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 3:18
mveRichard MacCutchan13-Dec-09 3:18 
GeneralRe: Using RFX_Text_Bulk [modified] Pin
Larry Mills Sr13-Dec-09 4:28
Larry Mills Sr13-Dec-09 4:28 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 4:50
mveRichard MacCutchan13-Dec-09 4:50 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr13-Dec-09 6:18
Larry Mills Sr13-Dec-09 6:18 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 6:47
mveRichard MacCutchan13-Dec-09 6:47 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr13-Dec-09 9:20
Larry Mills Sr13-Dec-09 9:20 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 9:48
mveRichard MacCutchan13-Dec-09 9:48 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 23:19
mveRichard MacCutchan13-Dec-09 23:19 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr14-Dec-09 0:56
Larry Mills Sr14-Dec-09 0:56 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan14-Dec-09 4:48
mveRichard MacCutchan14-Dec-09 4:48 
QuestionSDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
sharion12-Dec-09 7:36
sharion12-Dec-09 7:36 
AnswerRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
Cedric Moonen12-Dec-09 22:18
Cedric Moonen12-Dec-09 22:18 
GeneralRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
sharion13-Dec-09 5:48
sharion13-Dec-09 5:48 

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.