Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGlobal Variable Question Pin
JSadleir19-Mar-06 12:43
JSadleir19-Mar-06 12:43 
AnswerRe: Global Variable Question Pin
Chris Gao19-Mar-06 13:05
Chris Gao19-Mar-06 13:05 
GeneralRe: Global Variable Question Pin
JSadleir19-Mar-06 13:16
JSadleir19-Mar-06 13:16 
GeneralRe: Global Variable Question Pin
Richard Andrew x6419-Mar-06 13:42
professionalRichard Andrew x6419-Mar-06 13:42 
GeneralRe: Global Variable Question Pin
JSadleir19-Mar-06 14:03
JSadleir19-Mar-06 14:03 
GeneralRe: Global Variable Question Pin
Chris Gao19-Mar-06 13:49
Chris Gao19-Mar-06 13:49 
QuestionCSockets and multithreading Pin
softwaremonkey19-Mar-06 11:06
softwaremonkey19-Mar-06 11:06 
AnswerRe: CSockets and multithreading Pin
Richard Andrew x6419-Mar-06 11:20
professionalRichard Andrew x6419-Mar-06 11:20 
Don't take this as the final word on the subject, but I do remember reading specifically in the MFC docs that MFC objects cannot be shared between threads.

( I know, this is a real bummer. )

The solution is to pass the handle of the underlying socket to the worker thread, and then have the worker thread create a new CSocket, and Attach() the passed handle.

Hope this helps,
Rich
GeneralRe: CSockets and multithreading Pin
softwaremonkey19-Mar-06 11:33
softwaremonkey19-Mar-06 11:33 
GeneralRe: CSockets and multithreading Pin
Richard Andrew x6419-Mar-06 11:47
professionalRichard Andrew x6419-Mar-06 11:47 
Questionprinting bitmaps Pin
Waldermort19-Mar-06 8:01
Waldermort19-Mar-06 8:01 
AnswerRe: printing bitmaps Pin
David Crow19-Mar-06 9:04
David Crow19-Mar-06 9:04 
AnswerRe: printing bitmaps Pin
Roger Allen19-Mar-06 12:24
Roger Allen19-Mar-06 12:24 
AnswerRe: printing bitmaps Pin
Hamid_RT19-Mar-06 17:09
Hamid_RT19-Mar-06 17:09 
QuestionWhere is call for DLL within VisStu 6.0 C++ Pin
Robert Palma Jr.19-Mar-06 7:45
Robert Palma Jr.19-Mar-06 7:45 
AnswerRe: Where is call for DLL within VisStu 6.0 C++ Pin
Richard Andrew x6419-Mar-06 7:55
professionalRichard Andrew x6419-Mar-06 7:55 
GeneralRe: Where is call for DLL within VisStu 6.0 C++ Pin
Robert Palma Jr.19-Mar-06 8:11
Robert Palma Jr.19-Mar-06 8:11 
GeneralRe: Where is call for DLL within VisStu 6.0 C++ Pin
Richard Andrew x6419-Mar-06 8:17
professionalRichard Andrew x6419-Mar-06 8:17 
GeneralRe: Where is call for DLL within VisStu 6.0 C++ Pin
Robert Palma Jr.19-Mar-06 8:28
Robert Palma Jr.19-Mar-06 8:28 
QuestionWhy memcpy not correct! Pin
Hongjun Ge19-Mar-06 7:10
Hongjun Ge19-Mar-06 7:10 
AnswerRe: Why memcpy not correct! Pin
Richard Andrew x6419-Mar-06 7:26
professionalRichard Andrew x6419-Mar-06 7:26 
AnswerRe: Why memcpy not correct! Pin
Richard Andrew x6419-Mar-06 7:31
professionalRichard Andrew x6419-Mar-06 7:31 
GeneralRe: Why memcpy not correct! Pin
Hongjun Ge19-Mar-06 16:05
Hongjun Ge19-Mar-06 16:05 
AnswerRe: Why memcpy not correct! Pin
Richard Andrew x6419-Mar-06 7:41
professionalRichard Andrew x6419-Mar-06 7:41 
GeneralRe: Why memcpy not correct! Pin
bob1697219-Mar-06 8:04
bob1697219-Mar-06 8: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.