Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C, Win32 API: painting on a tabcontrol [Solved] Pin
Member 1213944222-Feb-16 11:31
Member 1213944222-Feb-16 11:31 
NewsCAysncSocket Notifications Pin
ForNow19-Feb-16 5:39
ForNow19-Feb-16 5:39 
GeneralRe: CAysncSocket Notifications Pin
Victor Nijegorodov23-Feb-16 1:50
Victor Nijegorodov23-Feb-16 1:50 
GeneralRe: CAysncSocket Notifications Pin
ForNow23-Feb-16 2:10
ForNow23-Feb-16 2:10 
GeneralRe: CAysncSocket Notifications Pin
Victor Nijegorodov23-Feb-16 23:01
Victor Nijegorodov23-Feb-16 23:01 
GeneralRe: CAysncSocket Notifications Pin
ForNow24-Feb-16 3:17
ForNow24-Feb-16 3:17 
GeneralRe: CAysncSocket Notifications Pin
Victor Nijegorodov24-Feb-16 5:36
Victor Nijegorodov24-Feb-16 5:36 
QuestionOpening a Second File from Explorer Pin
wdolson18-Feb-16 23:02
wdolson18-Feb-16 23:02 
AnswerRe: Opening a Second File from Explorer Pin
Jochen Arndt18-Feb-16 23:51
professionalJochen Arndt18-Feb-16 23:51 
GeneralRe: Opening a Second File from Explorer Pin
wdolson19-Feb-16 0:31
wdolson19-Feb-16 0:31 
GeneralRe: Opening a Second File from Explorer Pin
Jochen Arndt19-Feb-16 0:55
professionalJochen Arndt19-Feb-16 0:55 
GeneralRe: Opening a Second File from Explorer Pin
Richard MacCutchan19-Feb-16 1:02
mveRichard MacCutchan19-Feb-16 1:02 
GeneralRe: Opening a Second File from Explorer Pin
wdolson19-Feb-16 20:42
wdolson19-Feb-16 20:42 
GeneralRe: Opening a Second File from Explorer Pin
wdolson4-Mar-16 14:29
wdolson4-Mar-16 14:29 
QuestionCAsyncSocket::connect ipaddr ? Pin
ForNow16-Feb-16 13:20
ForNow16-Feb-16 13:20 
AnswerRe: CAsyncSocket::connect ipaddr ? Pin
Richard MacCutchan16-Feb-16 22:12
mveRichard MacCutchan16-Feb-16 22:12 
GeneralRe: CAsyncSocket::connect ipaddr ? Pin
ForNow17-Feb-16 3:39
ForNow17-Feb-16 3:39 
GeneralRe: CAsyncSocket::connect ipaddr ? Pin
Richard MacCutchan17-Feb-16 4:22
mveRichard MacCutchan17-Feb-16 4:22 
QuestionMFC Fragility to multiple threads Pin
Bram van Kampen11-Feb-16 13:43
Bram van Kampen11-Feb-16 13:43 
AnswerRe: MFC Fragility to multiple threads Pin
Jochen Arndt11-Feb-16 21:19
professionalJochen Arndt11-Feb-16 21:19 
This has not changed and will probably never change:
For size and performance reasons, MFC objects are not thread-safe at the object level, only at the class level.

For GUI objects, MFC is mainly a wrapper for the Windows API calls. When modifying GUI elements the corresponding API messages are sent and processed by the control's message loop. So there is no difference between MFC and API applications when changing a GUI element from within a worker thread: Both have to send messages. However, to send a message from another thread, PostMessage should be used instead of SendMessage to inject the message into the queue and process it later by the thread owning the control.

From my point of view using messages to update GUI controls is even simpler than using synchronisation and locking classes for shared objects.
AnswerRe: MFC Fragility to multiple threads Pin
CPallini11-Feb-16 21:37
mveCPallini11-Feb-16 21:37 
GeneralRe: MFC Fragility to multiple threads Pin
Bram van Kampen15-Feb-16 14:32
Bram van Kampen15-Feb-16 14:32 
AnswerRe: MFC Fragility to multiple threads Pin
Albert Holguin12-Feb-16 3:53
professionalAlbert Holguin12-Feb-16 3:53 
GeneralRe: MFC Fragility to multiple threads Pin
Bram van Kampen16-Mar-16 14:15
Bram van Kampen16-Mar-16 14:15 
AnswerRe: MFC Fragility to multiple threads Pin
Leif Simon Goodwin14-Mar-16 5:09
Leif Simon Goodwin14-Mar-16 5:09 

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.