Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List box question Pin
Jack Puppy12-Jul-05 7:42
Jack Puppy12-Jul-05 7:42 
GeneralGet The Status Of A Thread Pin
yccheok12-Jul-05 6:38
yccheok12-Jul-05 6:38 
hi, may i noe is there any API enable me to know the status of a thread through its handle?

HANDLE h = CreateThread(...

GetThreadStatus(h) == ALIVE || GetThreadStatus(h) == SLEEPING || GetThreadStatus(h) == DEAD

Currently, i create a thread A (with handle hA) in MAIN thread, and let the thread A run in funA. My thread A will set the hA to null at the end of funA.

This is the way for my MAIN thread to see whether thread A is alive

if(hA != NULL) ALIVE;

this method is quite cumbersome, can anyone share out better technique?

thank you very much!

cheok
GeneralRe: Get The Status Of A Thread Pin
David Crow12-Jul-05 8:19
David Crow12-Jul-05 8:19 
GeneralConvert 24bit bmp to dithered 2bit bmp Pin
Pabs(Sco)12-Jul-05 5:06
Pabs(Sco)12-Jul-05 5:06 
GeneralRe: Convert 24bit bmp to dithered 2bit bmp Pin
Andrew Kirillov12-Jul-05 5:37
Andrew Kirillov12-Jul-05 5:37 
GeneralRe: Convert 24bit bmp to dithered 2bit bmp Pin
Pabs(Sco)12-Jul-05 5:54
Pabs(Sco)12-Jul-05 5:54 
GeneralHELP ME!!!!!! Pin
Member 202519312-Jul-05 4:29
Member 202519312-Jul-05 4:29 
GeneralRe: HELP ME!!!!!! Pin
Jose Lamas Rios12-Jul-05 4:47
Jose Lamas Rios12-Jul-05 4:47 
GeneralRe: HELP ME!!!!!! Pin
toxcct12-Jul-05 6:12
toxcct12-Jul-05 6:12 
GeneralRe: HELP ME!!!!!! Pin
Tom Wright12-Jul-05 6:51
Tom Wright12-Jul-05 6:51 
GeneralRe: HELP ME!!!!!! Pin
Bob Stanneveld12-Jul-05 21:09
Bob Stanneveld12-Jul-05 21:09 
GeneralCapturing mouse events and Cursor Pin
Kharfax12-Jul-05 3:53
Kharfax12-Jul-05 3:53 
GeneralRe: Capturing mouse events and Cursor Pin
Blake Miller12-Jul-05 4:56
Blake Miller12-Jul-05 4:56 
GeneralRe: Capturing mouse events and Cursor Pin
Kharfax12-Jul-05 5:03
Kharfax12-Jul-05 5:03 
GeneralRe: Capturing mouse events and Cursor Pin
Trollslayer12-Jul-05 8:34
mentorTrollslayer12-Jul-05 8:34 
GeneralRe: Capturing mouse events and Cursor Pin
Kharfax12-Jul-05 10:44
Kharfax12-Jul-05 10:44 
GeneralRe: Capturing mouse events and Cursor Pin
Trollslayer12-Jul-05 11:33
mentorTrollslayer12-Jul-05 11:33 
GeneralRe: I found a solution Pin
Kharfax13-Jul-05 4:57
Kharfax13-Jul-05 4:57 
QuestionHow to Create inbound application using Tapi 3.0 Pin
riyajain12-Jul-05 3:02
riyajain12-Jul-05 3:02 
QuestionHow do I read a particular registry key Pin
Matthew Devine12-Jul-05 2:37
Matthew Devine12-Jul-05 2:37 
AnswerRe: How do I read a particular registry key Pin
Jose Lamas Rios12-Jul-05 2:59
Jose Lamas Rios12-Jul-05 2:59 
GeneralRe: How do I read a particular registry key Pin
Matthew Devine12-Jul-05 3:47
Matthew Devine12-Jul-05 3:47 
GeneralRe: How do I read a particular registry key Pin
Jose Lamas Rios12-Jul-05 4:00
Jose Lamas Rios12-Jul-05 4:00 
GeneralRe: How do I read a particular registry key Pin
Matthew Devine12-Jul-05 4:26
Matthew Devine12-Jul-05 4:26 
GeneralRe: How do I read a particular registry key Pin
Jose Lamas Rios12-Jul-05 4:41
Jose Lamas Rios12-Jul-05 4:41 

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.