Click here to Skip to main content
15,925,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionToolBar problem Pin
david bagaturia4-Apr-07 20:09
david bagaturia4-Apr-07 20:09 
AnswerRe: ToolBar problem Pin
Nishad S4-Apr-07 20:26
Nishad S4-Apr-07 20:26 
GeneralRe: ToolBar problem Pin
david bagaturia4-Apr-07 20:34
david bagaturia4-Apr-07 20:34 
AnswerRe: ToolBar problem Pin
Nibu babu thomas4-Apr-07 20:30
Nibu babu thomas4-Apr-07 20:30 
GeneralRe: ToolBar problem Pin
david bagaturia4-Apr-07 20:44
david bagaturia4-Apr-07 20:44 
Questioncant open "file.lib" after compilling Pin
sonavi4-Apr-07 19:34
sonavi4-Apr-07 19:34 
AnswerRe: cant open "file.lib" after compilling Pin
Nibu babu thomas4-Apr-07 20:58
Nibu babu thomas4-Apr-07 20:58 
Questionstoping particular selected thread. Pin
neha.agarwal274-Apr-07 19:33
neha.agarwal274-Apr-07 19:33 
Hello all,

I am having a list control(Report style),in that list control i have number of item. When i select a particular row and click on a button particular thread is started and if i select a different row and press the button same thread is started again.....following the same process i can start any number of same thread.

Now my problem is to end the particular selected thread.

i start thread using this line of code

pThread = (CMyThread*) AfxBeginThread( RUNTIME_CLASS CMyThread),THREAD_PRIORITY_NORMAL,NULL,CREATE_SUSPENDED,NULL);


and when i use this line of code to stop a thread it stops the last thread which is executing...

pThread->PostThreadMessage(WM_QUIT, NULL, NULL);


Can anybody solve my problem

Thanks in advance..
AnswerRe: stoping particular selected thread. Pin
Naveen4-Apr-07 20:37
Naveen4-Apr-07 20:37 
Questionpopup menu Pin
deeps_cute4-Apr-07 17:55
deeps_cute4-Apr-07 17:55 
AnswerRe: popup menu Pin
Hamid_RT4-Apr-07 18:35
Hamid_RT4-Apr-07 18:35 
AnswerRe: popup menu Pin
Naveen4-Apr-07 18:38
Naveen4-Apr-07 18:38 
GeneralRe: popup menu Pin
deeps_cute4-Apr-07 20:34
deeps_cute4-Apr-07 20:34 
GeneralRe: popup menu Pin
Naveen4-Apr-07 20:44
Naveen4-Apr-07 20:44 
GeneralRe: popup menu Pin
deeps_cute4-Apr-07 20:54
deeps_cute4-Apr-07 20:54 
GeneralRe: popup menu Pin
Naveen4-Apr-07 21:53
Naveen4-Apr-07 21:53 
GeneralRe: popup menu Pin
deeps_cute5-Apr-07 1:00
deeps_cute5-Apr-07 1:00 
GeneralRe: popup menu Pin
Naveen5-Apr-07 1:12
Naveen5-Apr-07 1:12 
QuestionDynamically Extending Arrays? Pin
chown4-Apr-07 17:18
chown4-Apr-07 17:18 
AnswerRe: Dynamically Extending Arrays? Pin
GameProfessor4-Apr-07 17:25
GameProfessor4-Apr-07 17:25 
AnswerRe: Dynamically Extending Arrays? Pin
William.Wang4-Apr-07 22:59
William.Wang4-Apr-07 22:59 
QuestionHow to create indefinite number of UI-thread with MFC Pin
GameProfessor4-Apr-07 16:41
GameProfessor4-Apr-07 16:41 
AnswerRe: How to create indefinite number of UI-thread with MFC Pin
Naveen4-Apr-07 17:24
Naveen4-Apr-07 17:24 
QuestionTrying to get my LinkedList class to compile... Pin
Pat Munns4-Apr-07 15:54
Pat Munns4-Apr-07 15:54 
AnswerRe: Trying to get my LinkedList class to compile... Pin
John R. Shaw4-Apr-07 19:15
John R. Shaw4-Apr-07 19: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.