Click here to Skip to main content
15,560,987 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
_Flaviu20-Jun-11 22:28
_Flaviu20-Jun-11 22:28 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
_Flaviu22-Jun-11 21:24
_Flaviu22-Jun-11 21:24 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
Richard MacCutchan22-Jun-11 22:56
mveRichard MacCutchan22-Jun-11 22:56 
QuestionBest Sound API for Game Development? Pin
AutoBot122518-Jun-11 6:04
AutoBot122518-Jun-11 6:04 
QuestionI had this interview question Pin
Software200718-Jun-11 5:26
Software200718-Jun-11 5:26 
AnswerRe: I had this interview question Pin
Philippe Mori18-Jun-11 6:14
Philippe Mori18-Jun-11 6:14 
GeneralRe: I had this interview question Pin
Software200718-Jun-11 16:17
Software200718-Jun-11 16:17 
AnswerRe: I had this interview question Pin
Chuck O'Toole18-Jun-11 16:59
Chuck O'Toole18-Jun-11 16:59 
This is a classic case and should be something you learn to watch for in any multithreaded application.

You have multiple variables (x, y) that must be in a consistent state (when x != 0, y must have the correct value) in order for the relationship between them to be correctly interpreted.

The only way to ensure this state is to use some form of mutual exclusion around the Setter and the Tester so that both variables are looked at as a single atomic item.

As Philippe said, it might work on some platforms and some compilers but if you are ever to take your multithreaded programming skills to other platforms then you need to learn how to avoid cases like this in the general case and use the tools in the multithreaded API to control access.
GeneralRe: I had this interview question Pin
Software200719-Jun-11 14:53
Software200719-Jun-11 14:53 
AnswerRe: I had this interview question Pin
Stefan_Lang20-Jun-11 0:23
mveStefan_Lang20-Jun-11 0:23 
GeneralRe: I had this interview question Pin
Software200720-Jun-11 4:17
Software200720-Jun-11 4:17 
Question__debugbreak(); [modified] Pin
Mohibur Rashid17-Jun-11 19:07
professionalMohibur Rashid17-Jun-11 19:07 
AnswerRe: __debugbreak(); Pin
Richard MacCutchan17-Jun-11 23:48
mveRichard MacCutchan17-Jun-11 23:48 
AnswerRe: __debugbreak(); Pin
Mohibur Rashid18-Jun-11 0:04
professionalMohibur Rashid18-Jun-11 0:04 
GeneralRe: __debugbreak(); Pin
Philippe Mori18-Jun-11 6:17
Philippe Mori18-Jun-11 6:17 
Question[Win32]Set Dialog Bitmap Background Pin
Member 296547117-Jun-11 14:20
Member 296547117-Jun-11 14:20 
AnswerRe: [Win32]Set Dialog Bitmap Background Pin
Cheongwadae17-Jun-11 15:34
Cheongwadae17-Jun-11 15:34 
GeneralRe: [Win32]Set Dialog Bitmap Background Pin
Ram Shelke17-Jun-11 23:09
Ram Shelke17-Jun-11 23:09 
AnswerRe: [Win32]Set Dialog Bitmap Background Pin
enhzflep18-Jun-11 4:05
enhzflep18-Jun-11 4:05 
QuestionError 2248: cannot access protected member declared in CWinapp Pin
eastman7517-Jun-11 9:23
eastman7517-Jun-11 9:23 
QuestionRe: Error 2248: cannot access protected member declared in CWinapp Pin
Abhi Lahare17-Jun-11 9:36
Abhi Lahare17-Jun-11 9:36 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7521-Jun-11 20:23
eastman7521-Jun-11 20:23 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin17-Jun-11 9:44
professionalAlbert Holguin17-Jun-11 9:44 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7517-Jun-11 23:10
eastman7517-Jun-11 23:10 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Richard MacCutchan17-Jun-11 23:52
mveRichard MacCutchan17-Jun-11 23:52 

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.