Click here to Skip to main content
12,697,620 members (27,845 online)

C / C++ / MFC

 
AnswerRe: When should printf round a floating number up for display? Pin
jschell28-Dec-12 10:45
memberjschell28-Dec-12 10:45 
GeneralRe: When should printf round a floating number up for display? Pin
Member 419459328-Dec-12 13:51
memberMember 419459328-Dec-12 13:51 
Questiongraphics.h multi-threading problem Pin
yudhistira dewanata28-Dec-12 1:22
memberyudhistira dewanata28-Dec-12 1:22 
AnswerRe: graphics.h multi-threading problem Pin
Richard MacCutchan28-Dec-12 6:49
mvpRichard MacCutchan28-Dec-12 6:49 
GeneralRe: graphics.h multi-threading problem Pin
yudhistira dewanata28-Dec-12 17:23
memberyudhistira dewanata28-Dec-12 17:23 
GeneralRe: graphics.h multi-threading problem Pin
Richard MacCutchan29-Dec-12 0:07
mvpRichard MacCutchan29-Dec-12 0:07 
GeneralRe: graphics.h multi-threading problem Pin
yudhistira dewanata30-Dec-12 6:01
memberyudhistira dewanata30-Dec-12 6:01 
AnswerRe: graphics.h multi-threading problem Pin
Randor 29-Dec-12 9:25
member Randor 29-Dec-12 9:25 
Hi,

This is very basic computer science problem. Look at your code cafefully.

First read all about context switching[^] and once you completely understand look over your code again.

Now ask yourself what would happen if ThreadA context switches in the middle of drawrect() and ThreadB continues execution of drawrect().

Best Wishes,
-David Delaune
GeneralRe: graphics.h multi-threading problem Pin
Richard MacCutchan29-Dec-12 22:28
mvpRichard MacCutchan29-Dec-12 22:28 
GeneralRe: graphics.h multi-threading problem Pin
yudhistira dewanata30-Dec-12 6:30
memberyudhistira dewanata30-Dec-12 6:30 
GeneralRe: graphics.h multi-threading problem Pin
Randor 31-Dec-12 12:14
member Randor 31-Dec-12 12:14 
GeneralRe: graphics.h multi-threading problem Pin
yudhistira dewanata31-Dec-12 17:48
memberyudhistira dewanata31-Dec-12 17:48 
QuestionHow to find the similarity between users in Twitter ? Pin
ldaneil27-Dec-12 8:21
memberldaneil27-Dec-12 8:21 
AnswerRe: How to find the similarity between users in Twitter ? Pin
André Kraak27-Dec-12 9:05
memberAndré Kraak27-Dec-12 9:05 
QuestionScrollBar is not Displaying Automatically Pin
yogeshs27-Dec-12 0:01
memberyogeshs27-Dec-12 0:01 
AnswerRe: ScrollBar is not Displaying Automatically Pin
April Fans27-Dec-12 15:22
memberApril Fans27-Dec-12 15:22 
GeneralRe: ScrollBar is not Displaying Automatically Pin
Richard MacCutchan27-Dec-12 22:38
mvpRichard MacCutchan27-Dec-12 22:38 
Question[SOLVED] Enhanced tool tips for ribbon markup file? Pin
Brandon T. H.26-Dec-12 7:18
memberBrandon T. H.26-Dec-12 7:18 
AnswerRe: Enhanced tool tips for ribbon markup file? Pin
Richard MacCutchan27-Dec-12 0:34
mvpRichard MacCutchan27-Dec-12 0:34 
GeneralRe: Enhanced tool tips for ribbon markup file? Pin
Brandon T. H.27-Dec-12 11:12
memberBrandon T. H.27-Dec-12 11:12 
GeneralRe: Enhanced tool tips for ribbon markup file? Pin
Richard MacCutchan27-Dec-12 22:33
mvpRichard MacCutchan27-Dec-12 22:33 
QuestionCasting structures - another basic question Pin
Vaclav_Sal24-Dec-12 5:38
memberVaclav_Sal24-Dec-12 5:38 
AnswerRe: Casting structures - another basic question Pin
Richard MacCutchan24-Dec-12 6:19
mvpRichard MacCutchan24-Dec-12 6:19 
GeneralSOLVED Casting structures - another basic question Pin
Vaclav_Sal24-Dec-12 9:04
memberVaclav_Sal24-Dec-12 9:04 
GeneralRe: SOLVED Casting structures - another basic question Pin
Erudite_Eric2-Jan-13 8:13
memberErudite_Eric2-Jan-13 8:13 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 20 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid