Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: write function writing more than one byte Pin
Joaquín M López Muñoz15-Nov-04 8:24
Joaquín M López Muñoz15-Nov-04 8:24 
GeneralRe: write function writing more than one byte Pin
dkel352116-Nov-04 6:01
dkel352116-Nov-04 6:01 
GeneralRe: write function writing more than one byte Pin
Joaquín M López Muñoz16-Nov-04 9:19
Joaquín M López Muñoz16-Nov-04 9:19 
GeneralSending email in MFC multi-Threading Pin
zhngmm15-Nov-04 6:56
zhngmm15-Nov-04 6:56 
General"Proper" way to do this kind of thread syncronisation. Pin
Jon Hulatt15-Nov-04 6:37
Jon Hulatt15-Nov-04 6:37 
GeneralRe: "Proper" way to do this kind of thread syncronisation. Pin
Antony M Kancidrowski15-Nov-04 6:56
Antony M Kancidrowski15-Nov-04 6:56 
GeneralRe: "Proper" way to do this kind of thread syncronisation. Pin
John M. Drescher15-Nov-04 9:45
John M. Drescher15-Nov-04 9:45 
GeneralRe: "Proper" way to do this kind of thread syncronisation. Pin
Blake Miller15-Nov-04 10:22
Blake Miller15-Nov-04 10:22 
You can eliminate the eventThreadHasStopped event if you cause your main thread to wait on the thread handle instead. You get the thread handle when the thread is first created. So, after the main thread sets the eventThreadShouldStop it can wait on the thread handle instead of the eventThreadHasStopped. The thread does not need to do anything but exit cleanly, and then the main thread will unblock and continue running. The way you are doing it is fine too, if you do not have the thread handle. I have done what you did many times and it works fine.

GeneralRe: "Proper" way to do this kind of thread syncronisation. Pin
Jon Hulatt15-Nov-04 23:28
Jon Hulatt15-Nov-04 23:28 
GeneralRe: "Proper" way to do this kind of thread syncronisation. Pin
Blake Miller16-Nov-04 4:21
Blake Miller16-Nov-04 4:21 
GeneralRe: "Proper" way to do this kind of thread syncronisation. Pin
Jon Hulatt16-Nov-04 4:28
Jon Hulatt16-Nov-04 4:28 
Generaldisplaying images in a dialog box Pin
ashsri15-Nov-04 5:42
ashsri15-Nov-04 5:42 
GeneralRe: displaying images in a dialog box Pin
pubududilena15-Nov-04 6:25
pubududilena15-Nov-04 6:25 
GeneralWhy Visual C++ generates other function name, but I use extern "C" Pin
Gasanov Tagir15-Nov-04 4:41
Gasanov Tagir15-Nov-04 4:41 
GeneralRe: Why Visual C++ generates other function name, but I use extern "C" Pin
David Crow15-Nov-04 4:59
David Crow15-Nov-04 4:59 
GeneralRe: Why Visual C++ generates other function name, but I use extern "C" Pin
Blake Miller15-Nov-04 10:25
Blake Miller15-Nov-04 10:25 
GeneralRe: Why Visual C++ generates other function name, but I use extern "C" Pin
Gasanov Tagir15-Nov-04 22:49
Gasanov Tagir15-Nov-04 22:49 
QuestionDynamic menus and messages? Pin
One Stone15-Nov-04 4:40
One Stone15-Nov-04 4:40 
AnswerRe: Dynamic menus and messages? Pin
Antony M Kancidrowski15-Nov-04 6:43
Antony M Kancidrowski15-Nov-04 6:43 
GeneralWaiting On Mutes's Pin
sweep12315-Nov-04 4:30
sweep12315-Nov-04 4:30 
GeneralRe: Waiting On Mutes's Pin
Antony M Kancidrowski15-Nov-04 6:12
Antony M Kancidrowski15-Nov-04 6:12 
QuestionHow to get full path of exe file? Pin
pubududilena15-Nov-04 2:00
pubududilena15-Nov-04 2:00 
AnswerRe: How to get full path of exe file? Pin
dabs15-Nov-04 2:09
dabs15-Nov-04 2:09 
GeneralRe: How to get full path of exe file? Pin
pubududilena15-Nov-04 6:15
pubududilena15-Nov-04 6:15 
GeneralRe: How to get full path of exe file? Pin
Maximilien15-Nov-04 6:24
Maximilien15-Nov-04 6:24 

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.