Click here to Skip to main content
15,868,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
_Flaviu20-Jun-11 21:28
_Flaviu20-Jun-11 21:28 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
_Flaviu22-Jun-11 20:24
_Flaviu22-Jun-11 20:24 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
Richard MacCutchan22-Jun-11 21:56
mveRichard MacCutchan22-Jun-11 21:56 
QuestionBest Sound API for Game Development? Pin
AutoBot122518-Jun-11 5:04
AutoBot122518-Jun-11 5:04 
QuestionI had this interview question Pin
Software200718-Jun-11 4:26
Software200718-Jun-11 4:26 
AnswerRe: I had this interview question Pin
Philippe Mori18-Jun-11 5:14
Philippe Mori18-Jun-11 5:14 
GeneralRe: I had this interview question Pin
Software200718-Jun-11 15:17
Software200718-Jun-11 15:17 
AnswerRe: I had this interview question Pin
Chuck O'Toole18-Jun-11 15:59
Chuck O'Toole18-Jun-11 15: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 13:53
Software200719-Jun-11 13:53 
AnswerRe: I had this interview question Pin
Stefan_Lang19-Jun-11 23:23
Stefan_Lang19-Jun-11 23:23 
GeneralRe: I had this interview question Pin
Software200720-Jun-11 3:17
Software200720-Jun-11 3:17 
Question__debugbreak(); [modified] Pin
Mohibur Rashid17-Jun-11 18:07
professionalMohibur Rashid17-Jun-11 18:07 
AnswerRe: __debugbreak(); Pin
Richard MacCutchan17-Jun-11 22:48
mveRichard MacCutchan17-Jun-11 22:48 
AnswerRe: __debugbreak(); Pin
Mohibur Rashid17-Jun-11 23:04
professionalMohibur Rashid17-Jun-11 23:04 
GeneralRe: __debugbreak(); Pin
Philippe Mori18-Jun-11 5:17
Philippe Mori18-Jun-11 5:17 
Question[Win32]Set Dialog Bitmap Background Pin
Member 296547117-Jun-11 13:20
Member 296547117-Jun-11 13:20 
AnswerRe: [Win32]Set Dialog Bitmap Background Pin
Cheongwadae17-Jun-11 14:34
Cheongwadae17-Jun-11 14:34 
GeneralRe: [Win32]Set Dialog Bitmap Background Pin
Ram Shelke17-Jun-11 22:09
Ram Shelke17-Jun-11 22:09 
AnswerRe: [Win32]Set Dialog Bitmap Background Pin
enhzflep18-Jun-11 3:05
enhzflep18-Jun-11 3:05 
QuestionError 2248: cannot access protected member declared in CWinapp Pin
eastman7517-Jun-11 8:23
eastman7517-Jun-11 8:23 
QuestionRe: Error 2248: cannot access protected member declared in CWinapp Pin
Abhi Lahare17-Jun-11 8:36
Abhi Lahare17-Jun-11 8:36 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7521-Jun-11 19:23
eastman7521-Jun-11 19:23 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin17-Jun-11 8:44
professionalAlbert Holguin17-Jun-11 8:44 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7517-Jun-11 22:10
eastman7517-Jun-11 22:10 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Richard MacCutchan17-Jun-11 22:52
mveRichard MacCutchan17-Jun-11 22: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.