Click here to Skip to main content
15,915,086 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VARIANT- picture control Pin
Stephen Hewitt4-Jun-07 14:51
Stephen Hewitt4-Jun-07 14:51 
QuestionOnCmdMsg( ) method Pin
prithaa4-Jun-07 6:38
prithaa4-Jun-07 6:38 
AnswerRe: OnCmdMsg( ) method Pin
David Crow4-Jun-07 6:56
David Crow4-Jun-07 6:56 
QuestionTwo Context Menu Dlls Are Exhibiting Mutually Exclusive Behavior Pin
Jeffrey Walton4-Jun-07 5:55
Jeffrey Walton4-Jun-07 5:55 
AnswerRe: Two Context Menu Dlls Are Exhibiting Mutually Exclusive Behavior Pin
Jeffrey Walton4-Jun-07 14:28
Jeffrey Walton4-Jun-07 14:28 
Questionhow to get the device id of a pocket pc Pin
reyd_todo4-Jun-07 5:54
reyd_todo4-Jun-07 5:54 
QuestionHandling of multiple threads Pin
zudroj4-Jun-07 4:02
zudroj4-Jun-07 4:02 
AnswerRe: Handling of multiple threads Pin
Mark Salsbery4-Jun-07 4:35
Mark Salsbery4-Jun-07 4:35 
How to start a thread can depend on what the thread procedure uses -
For just Windows API, CreateThread()
If using any C Runtime (CRT), use _beginthread/_beginthreadex
If using MFC, use AfxBeginThread

Ending threads should be done by letting the thread procedure return normally.

Anything that needs to be thread safe (done by only one thread at a time) should be synchronized.
Mutex and critical section objects work well for this.

See Joseph Newcomer's article Using Worker Threads[^] for lots of handy info.

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Handling of multiple threads Pin
zudroj4-Jun-07 21:20
zudroj4-Jun-07 21:20 
GeneralRe: Handling of multiple threads Pin
Mark Salsbery5-Jun-07 4:26
Mark Salsbery5-Jun-07 4:26 
GeneralRe: Handling of multiple threads Pin
zudroj5-Jun-07 21:36
zudroj5-Jun-07 21:36 
AnswerRe: Handling of multiple threads Pin
CPallini4-Jun-07 5:05
mveCPallini4-Jun-07 5:05 
QuestionCreating a color table Pin
TheDelChop4-Jun-07 2:50
TheDelChop4-Jun-07 2:50 
AnswerRe: Creating a color table Pin
CPallini4-Jun-07 3:57
mveCPallini4-Jun-07 3:57 
QuestionSpecific editing of a CString Pin
jasn Smith4-Jun-07 2:50
jasn Smith4-Jun-07 2:50 
AnswerRe: Specific editing of a CString Pin
_AnsHUMAN_ 4-Jun-07 3:10
_AnsHUMAN_ 4-Jun-07 3:10 
AnswerRe: Specific editing of a CString Pin
David Crow4-Jun-07 3:29
David Crow4-Jun-07 3:29 
QuestionFont Size Displays [modified] Pin
_AnsHUMAN_ 4-Jun-07 2:48
_AnsHUMAN_ 4-Jun-07 2:48 
AnswerRe: Font Size Displays Pin
Arman S.4-Jun-07 3:15
Arman S.4-Jun-07 3:15 
GeneralRe: Font Size Displays [modified] Pin
_AnsHUMAN_ 4-Jun-07 3:24
_AnsHUMAN_ 4-Jun-07 3:24 
AnswerRe: Font Size Displays Pin
Mark Salsbery4-Jun-07 4:47
Mark Salsbery4-Jun-07 4:47 
Questionsubclassing an activex control in mfc [modified] Pin
dkmr4-Jun-07 2:27
dkmr4-Jun-07 2:27 
AnswerRe: subclassing an activex control in mfc Pin
Naveen4-Jun-07 15:54
Naveen4-Jun-07 15:54 
Questionhow to make an indicator Pin
bigphish4-Jun-07 2:14
bigphish4-Jun-07 2:14 
AnswerRe: how to make an indicator Pin
David Crow4-Jun-07 3:32
David Crow4-Jun-07 3:32 

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.