Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List box customization..Problem with setting the item Height. Pin
Sameer_Thakur11-Apr-07 21:38
Sameer_Thakur11-Apr-07 21:38 
GeneralRe: List box customization..Problem with setting the item Height. Pin
sthotakura11-Apr-07 21:55
sthotakura11-Apr-07 21:55 
GeneralRe: List box customization..Problem with setting the item Height. Pin
Sameer_Thakur11-Apr-07 22:55
Sameer_Thakur11-Apr-07 22:55 
QuestionHow to check whether particular thread is running or not Pin
neha.agarwal2711-Apr-07 21:25
neha.agarwal2711-Apr-07 21:25 
AnswerRe: How to check whether particular thread is running or not Pin
Cedric Moonen11-Apr-07 21:29
Cedric Moonen11-Apr-07 21:29 
GeneralRe: How to check whether particular thread is running or not Pin
neha.agarwal2711-Apr-07 21:54
neha.agarwal2711-Apr-07 21:54 
GeneralRe: How to check whether particular thread is running or not Pin
Cedric Moonen11-Apr-07 23:01
Cedric Moonen11-Apr-07 23:01 
GeneralRe: How to check whether particular thread is running or not Pin
Stephen Hewitt12-Apr-07 1:55
Stephen Hewitt12-Apr-07 1:55 
This is not a good way to check if a thread has exited. Here’s what MSDN has to say on this issue:
Warning: If a thread happens to return STILL_ACTIVE (259) as an error code, applications that test for this value could end up in an infinite loop.


Here's how you do it without such dangers:
if (WaitForSingleObject(hThread, 0)==WAIT_OBJECT_0)
{
	// Thread has exited.
}


Don't forget to close the thread handle when you're done with it.


Steve

Questionprograming for usb port Pin
mahdiehIR11-Apr-07 21:17
mahdiehIR11-Apr-07 21:17 
AnswerRe: programing for usb port Pin
Hamid_RT11-Apr-07 21:32
Hamid_RT11-Apr-07 21:32 
AnswerRe: programing for usb port Pin
Cedric Moonen11-Apr-07 21:33
Cedric Moonen11-Apr-07 21:33 
QuestionVisual C++ Pin
PREETIGUPTA11-Apr-07 21:08
PREETIGUPTA11-Apr-07 21:08 
AnswerRe: Visual C++ Pin
Cedric Moonen11-Apr-07 21:19
Cedric Moonen11-Apr-07 21:19 
GeneralRe: Visual C++ Pin
markkuk11-Apr-07 23:09
markkuk11-Apr-07 23:09 
Questioncolor Pin
p_11-Apr-07 20:49
p_11-Apr-07 20:49 
AnswerRe: color Pin
Hamid_RT11-Apr-07 21:09
Hamid_RT11-Apr-07 21:09 
GeneralRe: color Pin
p_11-Apr-07 22:05
p_11-Apr-07 22:05 
GeneralRe: color Pin
Hamid_RT12-Apr-07 0:03
Hamid_RT12-Apr-07 0:03 
QuestionRegarding Linking error Please Help me. It's a bit urgent Pin
Nikhil Trivedi11-Apr-07 20:16
Nikhil Trivedi11-Apr-07 20:16 
GeneralRe: Regarding Linking error Please Help me. It's a bit urgent Pin
sthotakura11-Apr-07 21:30
sthotakura11-Apr-07 21:30 
QuestionRe: Regarding Linking error Please Help me. It's a bit urgent Pin
Nikhil Trivedi11-Apr-07 21:37
Nikhil Trivedi11-Apr-07 21:37 
GeneralRe: Regarding Linking error Please Help me. It's a bit urgent Pin
sthotakura11-Apr-07 21:50
sthotakura11-Apr-07 21:50 
QuestionSaving text files Pin
cyn811-Apr-07 19:07
cyn811-Apr-07 19:07 
AnswerRe: Saving text files Pin
Arman S.11-Apr-07 19:37
Arman S.11-Apr-07 19:37 
AnswerRe: Saving text files Pin
vimarsh puneet11-Apr-07 19:46
vimarsh puneet11-Apr-07 19:46 

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.