Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Blinking Button? Pin
Trollslayer2-Jul-05 6:49
mentorTrollslayer2-Jul-05 6:49 
AnswerRe: Blinking Button? Pin
toxcct2-Jul-05 7:20
toxcct2-Jul-05 7:20 
AnswerRe: Blinking Button? Pin
Michael Dunn3-Jul-05 10:26
sitebuilderMichael Dunn3-Jul-05 10:26 
QuestionTCHAR error? Pin
Larsson2-Jul-05 6:09
Larsson2-Jul-05 6:09 
AnswerRe: TCHAR error? Pin
PJ Arends2-Jul-05 9:38
professionalPJ Arends2-Jul-05 9:38 
AnswerRe: TCHAR error? Pin
Tom Archer2-Jul-05 9:39
Tom Archer2-Jul-05 9:39 
AnswerRe: TCHAR error? Pin
John R. Shaw2-Jul-05 18:19
John R. Shaw2-Jul-05 18:19 
GeneralThreading Pin
Umair Ahmad khan2-Jul-05 0:53
Umair Ahmad khan2-Jul-05 0:53 
I am having a little problem handling Threads. Problem is, there is a Thread that i want to Terminate when Destructor of a Class called. Thread function is Using some functions of that class. I have done bit reading on Threading(still learning concepts etc) and about terminating a thread the way i want to use is AfxEndThread. it must be called within the thread that has to be terminated. or can it be called outside that thread also. or is there any way to terminate that thread from outside by some other thread.
<br />
pThread = AfxBeginThread(run,&nCount,THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);<br />
	pThread->m_bAutoDelete=false;<br />
	pThread->ResumeThread();

thats how i am initializing the Thread. Now what if i just delete pThread object will this terminate the thread.
**************************
bit more detail...
above code is placed in the constructor of same class .. now another class when makes object of this class thread should start working and when it delets the object thread must also be end. I am getting some assertion error while some where in terminating the thread. and don't know where
GeneralRe: Threading Pin
Umair Ahmad khan2-Jul-05 1:02
Umair Ahmad khan2-Jul-05 1:02 
GeneralRe: Threading Pin
meinhard_risch2-Jul-05 6:59
meinhard_risch2-Jul-05 6:59 
GeneralRe: Threading Pin
Umair Ahmad khan2-Jul-05 10:41
Umair Ahmad khan2-Jul-05 10:41 
GeneralRe: Threading Pin
David Crow2-Jul-05 12:12
David Crow2-Jul-05 12:12 
Questionhow to read the header row in excel file? Pin
qqworm2-Jul-05 0:37
qqworm2-Jul-05 0:37 
GeneralFolder Synchronization Pin
M.Mehrdad.M1-Jul-05 22:47
M.Mehrdad.M1-Jul-05 22:47 
GeneralRe: Folder Synchronization Pin
David Crow2-Jul-05 12:14
David Crow2-Jul-05 12:14 
Generaldrive size Pin
sunit51-Jul-05 21:31
sunit51-Jul-05 21:31 
GeneralRe: drive size Pin
Jack Puppy1-Jul-05 21:44
Jack Puppy1-Jul-05 21:44 
GeneralRe: drive size Pin
sunit51-Jul-05 22:20
sunit51-Jul-05 22:20 
GeneralRe: drive size Pin
ThatsAlok1-Jul-05 22:54
ThatsAlok1-Jul-05 22:54 
GeneralRe: drive size Pin
sunit51-Jul-05 23:07
sunit51-Jul-05 23:07 
GeneralRe: drive size Pin
Jack Puppy2-Jul-05 0:12
Jack Puppy2-Jul-05 0:12 
GeneralRe: drive size Pin
sunit53-Jul-05 20:28
sunit53-Jul-05 20:28 
GeneralRe: drive size Pin
David Crow2-Jul-05 12:19
David Crow2-Jul-05 12:19 
GeneralRe: drive size Pin
sunit53-Jul-05 20:26
sunit53-Jul-05 20:26 
GeneralRe: drive size Pin
sunit53-Jul-05 20:27
sunit53-Jul-05 20:27 

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.