Click here to Skip to main content
15,892,797 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: merge two projects Pin
thathvamsi1-Aug-06 18:00
thathvamsi1-Aug-06 18:00 
QuestionLooking for a Library... Pin
Bob X1-Aug-06 15:32
Bob X1-Aug-06 15:32 
AnswerRe: Looking for a Library... Pin
valikac1-Aug-06 16:15
valikac1-Aug-06 16:15 
GeneralRe: Looking for a Library... Pin
bob169721-Aug-06 18:07
bob169721-Aug-06 18:07 
GeneralRe: Looking for a Library... Pin
Bob X2-Aug-06 11:14
Bob X2-Aug-06 11:14 
QuestionCan a program minimise itself ? Pin
cgb1431-Aug-06 11:51
cgb1431-Aug-06 11:51 
AnswerRe: Can a program minimise itself ? Pin
Jörgen Sigvardsson1-Aug-06 12:50
Jörgen Sigvardsson1-Aug-06 12:50 
Question"this" pointer for thread seems does not work [modified] Pin
zhijia.yuan1-Aug-06 11:38
zhijia.yuan1-Aug-06 11:38 
hi,
here is my weird question:
i defined a class:
Class CMyClass:: Public CWnd
...

then, i defined a function in another CPP file as threadproc.
UINT mythreadproc(LPVOID lpvoid)
{...
(CMyClass *) lpvoid;
...
}

and then, i tried to start the thread in a member function of CMyClass
CMyClass::Function1()
{
...
::AfxBeginThread(mythreadproc,this,THREAD_PRIORITY_NORMAL,NULL,NULL,NULL);

...
}

i used this because this thread just does some Drawing working periodically, and i want the lpvoid point to parent window so that i can ge the dc and client rect for drawing,
but the question is: i debugged the program, it seems the lpvoid is different from the "this " pointer point to the CMyClass object..what happened??



...


-- modified at 17:39 Tuesday 1st August, 2006
AnswerRe: "this" pointer for thread seems does not work Pin
Michael Dunn1-Aug-06 19:33
sitebuilderMichael Dunn1-Aug-06 19:33 
QuestionCan't send register value to port 0x43 Pin
Heinz_1-Aug-06 11:00
Heinz_1-Aug-06 11:00 
QuestionRice Compression Pin
masnu1-Aug-06 9:32
masnu1-Aug-06 9:32 
QuestionRe: Rice Compression Pin
David Crow1-Aug-06 10:22
David Crow1-Aug-06 10:22 
AnswerRe: Rice Compression Pin
masnu1-Aug-06 10:25
masnu1-Aug-06 10:25 
GeneralRe: Rice Compression Pin
David Crow2-Aug-06 2:54
David Crow2-Aug-06 2:54 
Questionhow can i implement acelp encoding? Pin
premium11-Aug-06 7:34
premium11-Aug-06 7:34 
AnswerRe: how can i implement acelp encoding? Pin
Ravi Bhavnani1-Aug-06 7:48
professionalRavi Bhavnani1-Aug-06 7:48 
QuestionOpening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:22
michmela441-Aug-06 7:22 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Programm3r1-Aug-06 7:31
Programm3r1-Aug-06 7:31 
GeneralRe: Opening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:36
michmela441-Aug-06 7:36 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Ravi Bhavnani1-Aug-06 7:31
professionalRavi Bhavnani1-Aug-06 7:31 
QuestionRe: Opening a Picture File and displaying it in a pictureBox Pin
David Crow1-Aug-06 7:37
David Crow1-Aug-06 7:37 
QuestionRe: Opening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:40
michmela441-Aug-06 7:40 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
michmela441-Aug-06 7:58
michmela441-Aug-06 7:58 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Ravi Bhavnani1-Aug-06 7:45
professionalRavi Bhavnani1-Aug-06 7:45 
AnswerRe: Opening a Picture File and displaying it in a pictureBox Pin
Ravi Bhavnani1-Aug-06 8:14
professionalRavi Bhavnani1-Aug-06 8:14 

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.