Click here to Skip to main content
15,909,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CSV Pin
MsmVc15-Dec-10 20:19
MsmVc15-Dec-10 20:19 
QuestionRe: CSV Pin
Alain Rist15-Dec-10 20:34
Alain Rist15-Dec-10 20:34 
AnswerRe: CSV Pin
Cedric Moonen15-Dec-10 20:45
Cedric Moonen15-Dec-10 20:45 
GeneralRe: CSV Pin
Alain Rist15-Dec-10 20:51
Alain Rist15-Dec-10 20:51 
GeneralRe: CSV Pin
Cedric Moonen15-Dec-10 20:56
Cedric Moonen15-Dec-10 20:56 
AnswerRe: CSV Pin
Cedric Moonen15-Dec-10 20:28
Cedric Moonen15-Dec-10 20:28 
GeneralRe: CSV Pin
MsmVc15-Dec-10 20:44
MsmVc15-Dec-10 20:44 
QuestionSubclassing CHeaderCtrl in CListCtrl Pin
mesajflaviu15-Dec-10 8:54
mesajflaviu15-Dec-10 8:54 
AnswerRe: Subclassing CHeaderCtrl in CListCtrl Pin
Eugen Podsypalnikov15-Dec-10 9:09
Eugen Podsypalnikov15-Dec-10 9:09 
GeneralRe: Subclassing CHeaderCtrl in CListCtrl Pin
mesajflaviu16-Dec-10 21:07
mesajflaviu16-Dec-10 21:07 
GeneralRe: Subclassing CHeaderCtrl in CListCtrl Pin
Eugen Podsypalnikov17-Dec-10 0:37
Eugen Podsypalnikov17-Dec-10 0:37 
GeneralRe: Subclassing CHeaderCtrl in CListCtrl Pin
mesajflaviu19-Dec-10 20:40
mesajflaviu19-Dec-10 20:40 
AnswerRe: Subclassing CHeaderCtrl in CListCtrl Pin
Rolf Kristensen15-Dec-10 11:27
Rolf Kristensen15-Dec-10 11:27 
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 
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 
The better way would be to set a stop-variable and check its value regularly during the thread execution. When it's set to 1, the thread is in control of what to do to terminate.
This way, the thread has a chance to clean up memory and terminate properly.

As for the direct problem of why TerminateThread won't work, does your handle have the access rights to terminate it?

modified 13-Sep-18 21:01pm.

AnswerRe: Problem in closing the thread Pin
yu-jian15-Dec-10 2:55
yu-jian15-Dec-10 2:55 

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.