Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Custom control problem Pin
PJ Arends21-Jan-06 12:00
professionalPJ Arends21-Jan-06 12:00 
GeneralRe: Custom control problem Pin
followait21-Jan-06 20:37
followait21-Jan-06 20:37 
QuestionCopyFile() Pin
Anu_Bala20-Jan-06 18:50
Anu_Bala20-Jan-06 18:50 
AnswerRe: CopyFile() Pin
whizano20-Jan-06 19:36
whizano20-Jan-06 19:36 
QuestionSuspendThread question Pin
misha_grewal20-Jan-06 17:53
misha_grewal20-Jan-06 17:53 
AnswerRe: SuspendThread question Pin
Toby Opferman20-Jan-06 19:13
Toby Opferman20-Jan-06 19:13 
AnswerRe: SuspendThread question Pin
Stephen Hewitt20-Jan-06 19:14
Stephen Hewitt20-Jan-06 19:14 
AnswerRe: SuspendThread question Pin
whizano20-Jan-06 19:30
whizano20-Jan-06 19:30 
some tips, uh?
the method, WaitforSingleObject(threadhandle, waittime)
will return a value equal to WAIT_TIMEOUT if the thread is still alive (not in signalled state). instead of if(m_hThreadF1 != 0) try using this method with waittime as zero, as below:
if(WaitForSingleObject(m_hThread, 0)==WAIT_TIMEOUT)
// The thread s alive
else
// The thread s signalled, spawn new

make sure that the pThread's m_autodelete s set to false.

u mentioned, the thread s supposed to be alive till da end.
in this case, it seems, ur thread func has to make a slight modification. ResumeThread(handle), will resume a thread from the point it has been suspended, so, in ur case, when the ThreadFuncF1 resumes, it jst exits!!!

ThreadFuncF1()
{
do{
// do the intended processing
// Finished Processing, Notify parent
SuspendThread(m_hThreadF1)
}while(TRUE); // do processing again
}
hope thes'll help. Sigh | :sigh:

thanks,
-- 'whiz'
Questionhow can i change the background color of selected listctrl item Pin
baldha rakesh20-Jan-06 17:50
baldha rakesh20-Jan-06 17:50 
AnswerRe: how can i change the background color of selected listctrl item Pin
Stephen Hewitt20-Jan-06 19:50
Stephen Hewitt20-Jan-06 19:50 
QuestionSimple C++ Error... Please Help Pin
Joshua N20-Jan-06 15:42
Joshua N20-Jan-06 15:42 
AnswerRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 16:06
professionalGarth J Lancaster20-Jan-06 16:06 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N20-Jan-06 21:54
Joshua N20-Jan-06 21:54 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 23:33
professionalGarth J Lancaster20-Jan-06 23:33 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 0:03
professionalGarth J Lancaster21-Jan-06 0:03 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 6:45
Joshua N21-Jan-06 6:45 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 12:19
professionalGarth J Lancaster21-Jan-06 12:19 
GeneralRe: Simple C++ Error... Please Help Pin
RadioOpa21-Jan-06 10:25
RadioOpa21-Jan-06 10:25 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 11:41
Joshua N21-Jan-06 11:41 
GeneralRe: Simple C++ Error... Please Help Pin
waxie22-Jan-06 17:30
waxie22-Jan-06 17:30 
AnswerRe: Simple C++ Error... Please Help Pin
Dr Dan22-Jan-06 10:02
Dr Dan22-Jan-06 10:02 
QuestionDatabase connection in .NET Pin
Jordan C. Atlas20-Jan-06 15:41
Jordan C. Atlas20-Jan-06 15:41 
AnswerRe: Database connection in .NET Pin
Ed K21-Jan-06 13:01
Ed K21-Jan-06 13:01 
GeneralRe: Database connection in .NET Pin
Jordan C. Atlas21-Jan-06 13:36
Jordan C. Atlas21-Jan-06 13:36 
QuestionHow to use code coverage in VC 2005? Pin
Azbok20-Jan-06 15:25
Azbok20-Jan-06 15:25 

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.