Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionquestion with the MFC documentation Pin
ewighell27-Oct-05 3:39
ewighell27-Oct-05 3:39 
AnswerRe: question with the MFC documentation Pin
Maximilien27-Oct-05 3:52
Maximilien27-Oct-05 3:52 
AnswerRe: question with the MFC documentation Pin
Chris Losinger27-Oct-05 3:55
professionalChris Losinger27-Oct-05 3:55 
AnswerRe: question with the MFC documentation Pin
toxcct27-Oct-05 3:58
toxcct27-Oct-05 3:58 
QuestionRe: question with the MFC documentation Pin
David Crow27-Oct-05 4:49
David Crow27-Oct-05 4:49 
AnswerRe: question with the MFC documentation Pin
ewighell27-Oct-05 5:02
ewighell27-Oct-05 5:02 
AnswerRe: question with the MFC documentation Pin
ewighell27-Oct-05 5:05
ewighell27-Oct-05 5:05 
QuestionHow to kill a thread ??? Pin
vikas amin27-Oct-05 2:21
vikas amin27-Oct-05 2:21 
==========================

typedef struct
{
int a;
HWND hWnd;
HDC hDC;
}thread;

thread obj_opendevice;


void OpenDevice::Draw_PMRconnecting()
{

CWinThread *pThread = AfxBeginThread(draw_line,&obj_opendevice);
}



UINT draw_line(LPVOID param)
{

}

I have created a thread using this above code how do kill the thread
by using the handle in the structure .
HWND hWnd can i use this handle to close the thread .
I want to close the thread from anyexternal function so i cannot
use the AfxEndThread(0);

thank you


Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
AnswerRe: How to kill a thread ??? Pin
David Crow27-Oct-05 2:32
David Crow27-Oct-05 2:32 
AnswerRe: How to kill a thread ??? Pin
ThatsAlok27-Oct-05 22:40
ThatsAlok27-Oct-05 22:40 
QuestionWritePrinter API seems Good but Behave Difficult Pin
AsimUmair27-Oct-05 1:27
AsimUmair27-Oct-05 1:27 
QuestionRe: WritePrinter API seems Good but Behave Difficult Pin
David Crow27-Oct-05 2:38
David Crow27-Oct-05 2:38 
AnswerRe: WritePrinter API seems Good but Behave Difficult Pin
AsimUmair28-Oct-05 0:04
AsimUmair28-Oct-05 0:04 
GeneralRe: WritePrinter API seems Good but Behave Difficult Pin
David Crow28-Oct-05 2:15
David Crow28-Oct-05 2:15 
Question(const char*)this == this Pin
WernerPos26-Oct-05 23:58
WernerPos26-Oct-05 23:58 
AnswerRe: (const char*)this == this Pin
cmk27-Oct-05 0:44
cmk27-Oct-05 0:44 
GeneralRe: (const char*)this == this Pin
WernerPos27-Oct-05 1:18
WernerPos27-Oct-05 1:18 
GeneralRe: (const char*)this == this Pin
WernerPos27-Oct-05 1:26
WernerPos27-Oct-05 1:26 
GeneralRe: (const char*)this == this Pin
cmk27-Oct-05 2:02
cmk27-Oct-05 2:02 
GeneralRe: (const char*)this == this Pin
WernerP27-Oct-05 22:11
WernerP27-Oct-05 22:11 
AnswerRe: (const char*)this == this Pin
BadKarma27-Oct-05 1:41
BadKarma27-Oct-05 1:41 
AnswerRe: (const char*)this == this Pin
BadKarma27-Oct-05 2:34
BadKarma27-Oct-05 2:34 
GeneralRe: (const char*)this == this Pin
WernerP27-Oct-05 22:19
WernerP27-Oct-05 22:19 
GeneralRe: (const char*)this == this Pin
WernerP27-Oct-05 2:42
WernerP27-Oct-05 2:42 
QuestionSwitch views inside ChildFrm Pin
LiYS26-Oct-05 22:38
LiYS26-Oct-05 22:38 

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.