Click here to Skip to main content
14,830,046 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC++ AND MS ACCESS connection Pin
himuskanhere4-Sep-07 2:08
Memberhimuskanhere4-Sep-07 2:08 
AnswerRe: VC++ AND MS ACCESS connection Pin
chandu0044-Sep-07 2:30
Memberchandu0044-Sep-07 2:30 
AnswerRe: VC++ AND MS ACCESS connection Pin
Hamid_RT4-Sep-07 3:38
MemberHamid_RT4-Sep-07 3:38 
QuestionHow to terminate a thread? Pin
kcynic4-Sep-07 0:52
Memberkcynic4-Sep-07 0:52 
AnswerRe: How to terminate a thread? Pin
Roger Stoltz4-Sep-07 1:02
MemberRoger Stoltz4-Sep-07 1:02 
GeneralRe: How to terminate a thread? Pin
kcynic4-Sep-07 1:15
Memberkcynic4-Sep-07 1:15 
GeneralRe: How to terminate a thread? Pin
Cedric Moonen4-Sep-07 1:25
MemberCedric Moonen4-Sep-07 1:25 
GeneralRe: How to terminate a thread? Pin
Roger Stoltz4-Sep-07 1:51
MemberRoger Stoltz4-Sep-07 1:51 
Use the technique described in Newcomer's article: wait for some handles to synchronization objects with a call to ::WaitForMultipleObjects() where one of them (preferably the first one for priority reasons) is signaled when the thread should terminate.

After you have set this event you should wait on the thread handle with ::WaitForSingleObject() to know when the thread has finished completely to be able to clean up the trhead object and other resources you have claimed for the thread.


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

AnswerRe: How to terminate a thread? Pin
aks.4-Sep-07 1:52
Memberaks.4-Sep-07 1:52 
GeneralRe: How to terminate a thread? Pin
kcynic4-Sep-07 1:57
Memberkcynic4-Sep-07 1:57 
GeneralRe: How to terminate a thread? Pin
Stephen Hewitt4-Sep-07 14:03
MemberStephen Hewitt4-Sep-07 14:03 
QuestionReadFile Pin
Waldermort4-Sep-07 0:32
MemberWaldermort4-Sep-07 0:32 
AnswerRe: ReadFile Pin
Naveen4-Sep-07 1:44
MemberNaveen4-Sep-07 1:44 
GeneralRe: ReadFile Pin
Nishad S4-Sep-07 2:18
MemberNishad S4-Sep-07 2:18 
GeneralRe: ReadFile Pin
Naveen4-Sep-07 2:23
MemberNaveen4-Sep-07 2:23 
GeneralRe: ReadFile Pin
Waldermort4-Sep-07 3:09
MemberWaldermort4-Sep-07 3:09 
QuestionWhy there would be a single line left on the screen when the dialog disapear? Pin
kcynic4-Sep-07 0:28
Memberkcynic4-Sep-07 0:28 
QuestionRe: Why there would be a single line left on the screen when the dialog disapear? Pin
Mark Salsbery4-Sep-07 5:45
MemberMark Salsbery4-Sep-07 5:45 
AnswerRe: Why there would be a single line left on the screen when the dialog disapear? Pin
kcynic4-Sep-07 17:36
Memberkcynic4-Sep-07 17:36 
QuestionRe: Why there would be a single line left on the screen when the dialog disapear? Pin
Mark Salsbery5-Sep-07 5:01
MemberMark Salsbery5-Sep-07 5:01 
AnswerRe: Why there would be a single line left on the screen when the dialog disapear? Pin
kcynic5-Sep-07 14:28
Memberkcynic5-Sep-07 14:28 
QuestionHow to get Serial Number of Motherboard Pin
nps_ltv3-Sep-07 23:56
Membernps_ltv3-Sep-07 23:56 
AnswerRe: How to get Serial Number of Motherboard Pin
chandu0044-Sep-07 0:16
Memberchandu0044-Sep-07 0:16 
GeneralRe: How to get Serial Number of Motherboard Pin
nps_ltv4-Sep-07 1:11
Membernps_ltv4-Sep-07 1:11 
GeneralRe: How to get Serial Number of Motherboard Pin
chandu0044-Sep-07 2:23
Memberchandu0044-Sep-07 2:23 

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.