Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
GeneralRe: Doubt Pin
Richard MacCutchan21-Jun-15 1:29
mveRichard MacCutchan21-Jun-15 1:29 
AnswerRe: Doubt Pin
Member 1177902720-Jun-15 21:32
Member 1177902720-Jun-15 21:32 
AnswerRe: Doubt Pin
CPallini19-Jun-15 23:41
mveCPallini19-Jun-15 23:41 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 20:49
Member 1177902720-Jun-15 20:49 
GeneralRe: Doubt Pin
Member 1177902720-Jun-15 20:52
Member 1177902720-Jun-15 20:52 
QuestionEvent objects VS Global variables Pin
sourabhmehta17-Jun-15 22:52
sourabhmehta17-Jun-15 22:52 
Hi Everyone,

I am new to multithreading. I was trying controlling threads using EVENT Objects. FYI i have single process and multiple threads.

I could achieve the same results without using events. Instead i used global flags to achieve the same.I can totally understand that using global variable is not a good practice.

Can anybody tell, what else is a major difference and if anybody can give some specific examples where only events can be used.

Thanks in advance

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.