Click here to Skip to main content
15,892,965 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LPWSTR to CString Pin
toxcct20-Apr-07 23:05
toxcct20-Apr-07 23:05 
AnswerRe: LPWSTR to CString Pin
toxcct19-Apr-07 23:07
toxcct19-Apr-07 23:07 
GeneralRe: LPWSTR to CString Pin
Michael Dunn20-Apr-07 7:21
sitebuilderMichael Dunn20-Apr-07 7:21 
AnswerRe: LPWSTR to CString Pin
ThatsAlok2-May-07 23:58
ThatsAlok2-May-07 23:58 
QuestionClosing all threads.. Pin
neha.agarwal2719-Apr-07 20:19
neha.agarwal2719-Apr-07 20:19 
AnswerRe: Closing all threads.. Pin
Roger Stoltz19-Apr-07 21:44
Roger Stoltz19-Apr-07 21:44 
GeneralRe: Closing all threads.. Pin
neha.agarwal2719-Apr-07 21:51
neha.agarwal2719-Apr-07 21:51 
GeneralRe: Closing all threads.. Pin
Roger Stoltz19-Apr-07 22:18
Roger Stoltz19-Apr-07 22:18 
PostThreadMessage(...) is the correct way to end a UI-thread, you're right about that.

It usually desired and considered good practice to wait on the thread handle to make sure that the thread has finished and delete the CWinThread object afterwards.
The articles I linked to in my previous post will show you how.

However, this requires that you keep track of all threads in some kind of container, e.g. std::vector.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: Closing all threads.. Pin
ThatsAlok2-May-07 23:56
ThatsAlok2-May-07 23:56 
AnswerRe: Closing all threads.. Pin
Atul2319-Apr-07 21:46
Atul2319-Apr-07 21:46 
AnswerRe: Closing all threads.. Pin
Eytukan21-Apr-07 0:14
Eytukan21-Apr-07 0:14 
QuestionAbout RegisterDeviceNotification() Pin
Aneesh Valeri19-Apr-07 20:02
Aneesh Valeri19-Apr-07 20:02 
AnswerRe: About RegisterDeviceNotification() Pin
GeorgeVN22-Apr-07 19:48
GeorgeVN22-Apr-07 19:48 
QuestionPassing more than one Query String in a Site map Pin
kaushik49019-Apr-07 19:50
kaushik49019-Apr-07 19:50 
AnswerRe: Passing more than one Query String in a Site map Pin
satishjha6-Nov-11 21:36
satishjha6-Nov-11 21:36 
QuestionHow to Subclass a MessageBox Button.. [modified] Pin
sdhexu19-Apr-07 19:13
sdhexu19-Apr-07 19:13 
QuestionHow to keep track of the objects in an editor Pin
kasturi_haribabu19-Apr-07 18:54
kasturi_haribabu19-Apr-07 18:54 
QuestionHelp about New Document Pin
Md. Mazharul Islam Khan19-Apr-07 18:51
Md. Mazharul Islam Khan19-Apr-07 18:51 
QuestionWin32 Pin
Anish_Animaynia19-Apr-07 17:31
Anish_Animaynia19-Apr-07 17:31 
AnswerRe: Win32 Pin
CPallini19-Apr-07 20:39
mveCPallini19-Apr-07 20:39 
GeneralRe: Win32 Pin
Anish_Animaynia19-Apr-07 22:21
Anish_Animaynia19-Apr-07 22:21 
GeneralRe: Win32 Pin
Rajesh R Subramanian19-Apr-07 22:39
professionalRajesh R Subramanian19-Apr-07 22:39 
GeneralRe: Win32 Pin
Alexandre GRANVAUD20-Apr-07 1:56
Alexandre GRANVAUD20-Apr-07 1:56 
GeneralRe: Win32 Pin
CPallini20-Apr-07 2:20
mveCPallini20-Apr-07 2:20 
GeneralRe: Win32 Pin
Mark Salsbery20-Apr-07 8:08
Mark Salsbery20-Apr-07 8:08 

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.