Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmath Pin
Calin Negru4-Jun-22 20:13
Calin Negru4-Jun-22 20:13 
AnswerRe: math Pin
Victor Nijegorodov4-Jun-22 20:42
Victor Nijegorodov4-Jun-22 20:42 
AnswerRe: math Pin
Richard MacCutchan4-Jun-22 21:10
mveRichard MacCutchan4-Jun-22 21:10 
GeneralRe: math Pin
Calin Negru4-Jun-22 22:03
Calin Negru4-Jun-22 22:03 
GeneralRe: math Pin
Richard MacCutchan4-Jun-22 22:10
mveRichard MacCutchan4-Jun-22 22:10 
GeneralRe: math Pin
Calin Negru4-Jun-22 23:04
Calin Negru4-Jun-22 23:04 
QuestionGame loop and time measurement. Pin
Member 152127684-Jun-22 5:23
Member 152127684-Jun-22 5:23 
AnswerRe: Game loop and time measurement. Pin
Mircea Neacsu4-Jun-22 7:47
Mircea Neacsu4-Jun-22 7:47 
Member 15212768 wrote:
What's the point in `base = timeGetTime() & 0xffff0000` line?

To avoid being too close to rollover point. From "timeGetTime function | Microsoft Docs"[^]:
Quote:
The return value wraps around to 0 every 2^32 milliseconds, which is about 49.71 days. This can cause problems in code that directly uses the timeGetTime return value in computations, particularly where the value is used to control code execution. You should always use the difference between two timeGetTime return values in computations.

Mircea

AnswerRe: Game loop and time measurement. Pin
Calin Negru4-Jun-22 10:43
Calin Negru4-Jun-22 10:43 
QuestionCollege Project Visual Enhancement Pin
Tomás Temperley2-Jun-22 15:31
Tomás Temperley2-Jun-22 15:31 
AnswerRe: College Project Visual Enhancement Pin
Richard MacCutchan2-Jun-22 21:48
mveRichard MacCutchan2-Jun-22 21:48 
GeneralRe: College Project Visual Enhancement Pin
Tomás Temperley3-Jun-22 10:24
Tomás Temperley3-Jun-22 10:24 
GeneralRe: College Project Visual Enhancement Pin
Richard MacCutchan3-Jun-22 22:17
mveRichard MacCutchan3-Jun-22 22:17 
QuestionAdd a context menu item in Windows Explorer (C/C++, no MFC) Pin
Derell Licht1-Jun-22 16:53
professionalDerell Licht1-Jun-22 16:53 
AnswerRe: Add a context menu item in Windows Explorer (C/C++, no MFC) Pin
Victor Nijegorodov1-Jun-22 20:29
Victor Nijegorodov1-Jun-22 20:29 
GeneralRe: Add a context menu item in Windows Explorer (C/C++, no MFC) Pin
Derell Licht2-Jun-22 4:41
professionalDerell Licht2-Jun-22 4:41 
GeneralRe: Add a context menu item in Windows Explorer (C/C++, no MFC) Pin
Dave Kreskowiak2-Jun-22 5:38
mveDave Kreskowiak2-Jun-22 5:38 
GeneralRe: Add a context menu item in Windows Explorer (C/C++, no MFC) Pin
Derell Licht2-Jun-22 5:50
professionalDerell Licht2-Jun-22 5:50 
GeneralRe: Add a context menu item in Windows Explorer (C/C++, no MFC) Pin
Dave Kreskowiak2-Jun-22 5:52
mveDave Kreskowiak2-Jun-22 5:52 
QuestionListbox items disappear Pin
ForNow31-May-22 17:05
ForNow31-May-22 17:05 
AnswerRe: Listbox items disappear Pin
Richard MacCutchan31-May-22 21:33
mveRichard MacCutchan31-May-22 21:33 
GeneralRe: Listbox items disappear Pin
ForNow1-Jun-22 12:17
ForNow1-Jun-22 12:17 
GeneralRe: Listbox items disappear Pin
Victor Nijegorodov1-Jun-22 20:17
Victor Nijegorodov1-Jun-22 20:17 
GeneralRe: Listbox items disappear Pin
Richard MacCutchan2-Jun-22 1:37
mveRichard MacCutchan2-Jun-22 1:37 
GeneralRe: Listbox items disappear Pin
ForNow2-Jun-22 2:11
ForNow2-Jun-22 2:11 

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.