Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[SOLVED] Create ListView ActiveX using MFC Pin
martinergb15-Dec-10 6:47
martinergb15-Dec-10 6:47 
AnswerRe: Create ListView ActiveX using MFC Pin
User 742933815-Dec-10 6:59
professionalUser 742933815-Dec-10 6:59 
GeneralRe: Create ListView ActiveX using MFC Pin
martinergb15-Dec-10 16:01
martinergb15-Dec-10 16:01 
Questionremove unwanted resource VC6 Pin
cy163@hotmail.com15-Dec-10 1:59
cy163@hotmail.com15-Dec-10 1:59 
AnswerRe: remove unwanted resource VC6 Pin
R@jeev K R15-Dec-10 2:16
R@jeev K R15-Dec-10 2:16 
QuestionCMap Issue. Pin
janaswamy uday15-Dec-10 0:19
janaswamy uday15-Dec-10 0:19 
AnswerRe: CMap Issue. Pin
R@jeev K R15-Dec-10 1:25
R@jeev K R15-Dec-10 1:25 
QuestionProblem in closing the thread Pin
learningvisualc14-Dec-10 19:00
learningvisualc14-Dec-10 19:00 
Hi all,

I have made a application in which i have a list control. Suppose that list control has 5 items when i press a button a thread is started using AfxBeginThread. Inside that thread i have made a for loop. That for loop pick up items from list and do some processings say a,b,c. These processing use functions of some other classes to get their result. I have a made a second button, by clicking on that second button i stop my thread using ::TerminateThread(obj,NULL);. My problem is when i click on second button my thread doesn't stop say if it is doing processing b first it will finish doing b then c then it will stop. I tried using ::TerminateThread(obj->m_hThread, NULL); but it also creates problem after some time i.e if i start and stop my processing for 3 times it will not start the process third time.

I don't know what to do?

Can anybody help me in this?

Thanks in advance
AnswerRe: Problem in closing the thread Pin
Rajesh R Subramanian14-Dec-10 19:52
professionalRajesh R Subramanian14-Dec-10 19:52 
AnswerRe: Problem in closing the thread Pin
Cedric Moonen14-Dec-10 20:45
Cedric Moonen14-Dec-10 20:45 
AnswerRe: Problem in closing the thread Pin
User 742933814-Dec-10 22:06
professionalUser 742933814-Dec-10 22:06 
AnswerRe: Problem in closing the thread Pin
yu-jian15-Dec-10 2:55
yu-jian15-Dec-10 2:55 
QuestionQuestion on MFC program execution procedure [modified] Pin
cy163@hotmail.com14-Dec-10 2:14
cy163@hotmail.com14-Dec-10 2:14 
AnswerRe: Question on MFC program execution procedure Pin
bleedingfingers14-Dec-10 2:55
bleedingfingers14-Dec-10 2:55 
AnswerRe: Question on MFC program execution procedure Pin
David Crow14-Dec-10 3:02
David Crow14-Dec-10 3:02 
AnswerRe: Question on MFC program execution procedure Pin
yu-jian14-Dec-10 17:59
yu-jian14-Dec-10 17:59 
QuestionBubble sort in CObList [modified] Pin
mesajflaviu14-Dec-10 1:10
mesajflaviu14-Dec-10 1:10 
AnswerRe: Bubble sort in CObList Pin
Richard MacCutchan14-Dec-10 1:59
mveRichard MacCutchan14-Dec-10 1:59 
GeneralRe: Bubble sort in CObList Pin
Cedric Moonen14-Dec-10 2:12
Cedric Moonen14-Dec-10 2:12 
AnswerRe: Bubble sort in CObList Pin
Cedric Moonen14-Dec-10 2:01
Cedric Moonen14-Dec-10 2:01 
GeneralRe: Bubble sort in CObList Pin
mesajflaviu14-Dec-10 2:13
mesajflaviu14-Dec-10 2:13 
GeneralRe: Bubble sort in CObList Pin
Cedric Moonen14-Dec-10 2:18
Cedric Moonen14-Dec-10 2:18 
GeneralRe: Bubble sort in CObList Pin
mesajflaviu14-Dec-10 8:43
mesajflaviu14-Dec-10 8:43 
GeneralRe: Bubble sort in CObList Pin
Rajesh R Subramanian14-Dec-10 19:53
professionalRajesh R Subramanian14-Dec-10 19:53 
GeneralRe: Bubble sort in CObList Pin
mesajflaviu14-Dec-10 21:15
mesajflaviu14-Dec-10 21:15 

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.