Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: SDI Project Question Pin
David Crow23-Jun-15 9:50
David Crow23-Jun-15 9:50 
GeneralRe: SDI Project Question Pin
Arrin23-Jun-15 12:21
Arrin23-Jun-15 12:21 
QuestionUse #define or enum in switch() case(s) ? Pin
Vaclav_22-Jun-15 5:40
Vaclav_22-Jun-15 5:40 
AnswerRe: Use #define or enum in switch() case(s) ? Pin
PIEBALDconsult22-Jun-15 5:51
mvePIEBALDconsult22-Jun-15 5:51 
AnswerRe: Use #define or enum in switch() case(s) ? Pin
Jochen Arndt22-Jun-15 6:51
professionalJochen Arndt22-Jun-15 6:51 
AnswerRe: Use #define or enum in switch() case(s) ? Pin
Albert Holguin22-Jun-15 9:49
professionalAlbert Holguin22-Jun-15 9:49 
AnswerRe: Use #define or enum in switch() case(s) ? Pin
Vaclav_22-Jun-15 15:42
Vaclav_22-Jun-15 15:42 
GeneralRe: Use #define or enum in switch() case(s) ? Pin
Frankie-C22-Jun-15 22:44
Frankie-C22-Jun-15 22:44 
No you don't have to declare enum volatile, and the compiler should give you error. This because you are creating an enumerated series of constants and they can't change.
You must declare volatile your input variable, because this is the one that changes under interrupt. You must do this to advice the compiler to take care when optimizing code to make no assumptions on its value. If you don't there will be cases in which the compiler will assume that the variable is in a specific condition and will omit some code or use an old value.
GeneralRe: Use #define or enum in switch() case(s) ? Pin
Vaclav_23-Jun-15 4:44
Vaclav_23-Jun-15 4:44 
AnswerRe: Use #define or enum in switch() case(s) ? Pin
Albert Holguin24-Jun-15 12:12
professionalAlbert Holguin24-Jun-15 12:12 
GeneralRe: Use #define or enum in switch() case(s) ? Pin
Vaclav_26-Jun-15 5:25
Vaclav_26-Jun-15 5:25 
GeneralRe: Use #define or enum in switch() case(s) ? Pin
Albert Holguin26-Jun-15 10:16
professionalAlbert Holguin26-Jun-15 10:16 
GeneralJust released the latest version of my open source project... Pin
Corvusoft21-Jun-15 4:30
Corvusoft21-Jun-15 4:30 
GeneralRe: Just released the latest version of my open source project... Pin
CPallini21-Jun-15 21:37
mveCPallini21-Jun-15 21:37 
GeneralRe: Just released the latest version of my open source project... Pin
Corvusoft21-Jun-15 21:50
Corvusoft21-Jun-15 21:50 
GeneralRe: Just released the latest version of my open source project... Pin
CPallini22-Jun-15 2:04
mveCPallini22-Jun-15 2:04 
GeneralRe: Just released the latest version of my open source project... Pin
Corvusoft21-Jun-15 21:52
Corvusoft21-Jun-15 21:52 
QuestionUpdatePanningFeedback() moves entire application window Pin
bob1697220-Jun-15 3:05
bob1697220-Jun-15 3:05 
QuestionDoubt Pin
Member 1177902719-Jun-15 16:38
Member 1177902719-Jun-15 16:38 
AnswerRe: Doubt Pin
Richard MacCutchan19-Jun-15 21:13
mveRichard MacCutchan19-Jun-15 21:13 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 21:07
Member 1177902720-Jun-15 21:07 
QuestionRe: Doubt Pin
Richard MacCutchan20-Jun-15 21:14
mveRichard MacCutchan20-Jun-15 21:14 
AnswerRe: Doubt Pin
Member 1177902720-Jun-15 21:21
Member 1177902720-Jun-15 21:21 
GeneralRe: Doubt Pin
Richard MacCutchan20-Jun-15 21:33
mveRichard MacCutchan20-Jun-15 21:33 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 21:40
Member 1177902720-Jun-15 21:40 

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.