Click here to Skip to main content
15,561,246 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to monitor internet activities Pin
rajeevktripathi7-Sep-05 0:06
rajeevktripathi7-Sep-05 0:06 
AnswerRe: How to monitor internet activities Pin
David Crow7-Sep-05 4:14
David Crow7-Sep-05 4:14 
AnswerRe: How to monitor internet activities Pin
IndianOcean7-Sep-05 4:42
IndianOcean7-Sep-05 4:42 
Questionsimplest thread program doesn't work Pin
Spiritofamerica6-Sep-05 23:40
Spiritofamerica6-Sep-05 23:40 
AnswerRe: simplest thread program doesn't work Pin
Cedric Moonen6-Sep-05 23:57
Cedric Moonen6-Sep-05 23:57 
AnswerRe: simplest thread program doesn't work Pin
Hans Ruck6-Sep-05 23:58
Hans Ruck6-Sep-05 23:58 
AnswerRe: simplest thread program doesn't work Pin
Marc Soleda7-Sep-05 0:06
Marc Soleda7-Sep-05 0:06 
AnswerRe: simplest thread program doesn't work Pin
Bob Ciora7-Sep-05 4:03
Bob Ciora7-Sep-05 4:03 
As mentioned, the main is exiting before the thread can even execute. To wait for the thread to terminate, you can do a WaitForSingleObject(hThread, INFINITE);. This will wait for the thread handle to become "invalid," which occurs when the thread terminates. At that point, you should also do a CloseHandle(hThread); before exiting.



Bob Ciora
AnswerRe: simplest thread program doesn't work Pin
LighthouseJ7-Sep-05 14:58
LighthouseJ7-Sep-05 14:58 
Questionopening file by double-clicking (FileDDE) broken in VS 7.1 ?! Pin
T.T.H.6-Sep-05 23:36
T.T.H.6-Sep-05 23:36 
Questionstringsend? Pin
Member 21610046-Sep-05 23:31
Member 21610046-Sep-05 23:31 
AnswerRe: stringsend? Pin
Cedric Moonen7-Sep-05 0:13
Cedric Moonen7-Sep-05 0:13 
GeneralRe: stringsend? Pin
Member 21610047-Sep-05 0:39
Member 21610047-Sep-05 0:39 
GeneralRe: stringsend? Pin
Cedric Moonen7-Sep-05 0:45
Cedric Moonen7-Sep-05 0:45 
GeneralRe: stringsend? Pin
Member 21610047-Sep-05 18:20
Member 21610047-Sep-05 18:20 
AnswerRe: stringsend? Pin
kakan7-Sep-05 1:14
professionalkakan7-Sep-05 1:14 
QuestionAdding page number to word doc Pin
Barm6-Sep-05 22:46
Barm6-Sep-05 22:46 
QuestionChange Font of caption of dialog box ?? Pin
ana_v1236-Sep-05 21:59
ana_v1236-Sep-05 21:59 
AnswerRe: Change Font of caption of dialog box ?? Pin
Barm6-Sep-05 22:43
Barm6-Sep-05 22:43 
GeneralRe: Change Font of caption (title) of dialog box ?? Pin
Anonymous13-Sep-05 2:47
Anonymous13-Sep-05 2:47 
QuestionProper time to record Pin
LiYS6-Sep-05 21:20
LiYS6-Sep-05 21:20 
AnswerRe: Proper time to record Pin
David Crow7-Sep-05 4:22
David Crow7-Sep-05 4:22 
QuestionProblem related to CImageList(explanation) Pin
a_david1236-Sep-05 21:18
a_david1236-Sep-05 21:18 
QuestionHow does CListCtrl notify its parent window when a cell content has changed? Pin
followait6-Sep-05 21:18
followait6-Sep-05 21:18 
AnswerRe: How does CListCtrl notify its parent window when a cell content has changed? Pin
Ian Bowler7-Sep-05 14:39
Ian Bowler7-Sep-05 14:39 

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.