Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCompiler On Linux Pin
Thong LeTrung8-Nov-13 16:51
Thong LeTrung8-Nov-13 16:51 
AnswerRe: Compiler On Linux Pin
Richard MacCutchan8-Nov-13 23:00
mveRichard MacCutchan8-Nov-13 23:00 
AnswerRe: Compiler On Linux Pin
Albert Holguin14-Nov-13 5:24
professionalAlbert Holguin14-Nov-13 5:24 
GeneralRe: Compiler On Linux Pin
Thong LeTrung16-Nov-13 20:25
Thong LeTrung16-Nov-13 20:25 
Questionvolatile local variable Pin
econy6-Nov-13 3:32
econy6-Nov-13 3:32 
AnswerRe: volatile local variable Pin
David Knechtges6-Nov-13 3:37
David Knechtges6-Nov-13 3:37 
GeneralRe: volatile local variable Pin
econy6-Nov-13 4:19
econy6-Nov-13 4:19 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 4:23
pasztorpisti6-Nov-13 4:23 
If you pass a pointer to your variable outside the function (for example to an interrupt handler) and then you guarantee the lifetime of that variable (for example by blocking on an event with this thread) and you want to use the variable in the function after finishing the block operation on the event then it could be useful (because the value of the variable might have been changed by other threads) but what I've described previously sounds quite pervert and awfully designed code. I don't think volatile local vars to be useful.
GeneralRe: volatile local variable Pin
econy6-Nov-13 4:44
econy6-Nov-13 4:44 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:15
pasztorpisti6-Nov-13 5:15 
GeneralRe: volatile local variable Pin
econy6-Nov-13 5:36
econy6-Nov-13 5:36 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:39
pasztorpisti6-Nov-13 5:39 
GeneralRe: volatile local variable Pin
Aescleal6-Nov-13 4:49
Aescleal6-Nov-13 4:49 
GeneralRe: volatile local variable Pin
pasztorpisti6-Nov-13 5:09
pasztorpisti6-Nov-13 5:09 
AnswerRe: volatile local variable Pin
jschell6-Nov-13 8:03
jschell6-Nov-13 8:03 
Question_com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:14
Mike Grove5-Nov-13 22:14 
SuggestionRe: _com_error not caught by 'Try-Catch' code Pin
Richard MacCutchan5-Nov-13 22:26
mveRichard MacCutchan5-Nov-13 22:26 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:53
Mike Grove5-Nov-13 22:53 
AnswerRe: _com_error not caught by 'Try-Catch' code Pin
Aescleal5-Nov-13 22:36
Aescleal5-Nov-13 22:36 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Mike Grove5-Nov-13 22:57
Mike Grove5-Nov-13 22:57 
GeneralRe: _com_error not caught by 'Try-Catch' code Pin
Aescleal5-Nov-13 23:38
Aescleal5-Nov-13 23:38 
Questionmfc Pin
shizhanbiao5-Nov-13 19:59
shizhanbiao5-Nov-13 19:59 
AnswerRe: mfc Pin
CPallini5-Nov-13 21:32
mveCPallini5-Nov-13 21:32 
QuestionRe: mfc Pin
David Crow6-Nov-13 4:13
David Crow6-Nov-13 4:13 
QuestionGetting output parameters value[Solved] Pin
pkfox4-Nov-13 4:04
professionalpkfox4-Nov-13 4:04 

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.