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

C / C++ / MFC

 
AnswerRe: Issue with localtime() Pin
Don Rummelhart10-Mar-09 11:25
Don Rummelhart10-Mar-09 11:25 
QuestionPath of Root and Virtual directory in ISAPI ? Pin
mmayur9-Mar-09 8:35
mmayur9-Mar-09 8:35 
QuestionDoubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
sarathbabununna9-Mar-09 7:55
sarathbabununna9-Mar-09 7:55 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
David Crow9-Mar-09 8:26
David Crow9-Mar-09 8:26 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:36
Iain Clarke, Warrior Programmer10-Mar-09 1:36 
QuestionScroll Bars and Input Fields Pin
BobInNJ9-Mar-09 7:44
BobInNJ9-Mar-09 7:44 
QuestionCHtmlView not displaying anything [modified] Pin
Brahmandcoder9-Mar-09 7:08
Brahmandcoder9-Mar-09 7:08 
QuestionAccessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 6:36
ForNow9-Mar-09 6:36 
Hi,

I recently got a answer to a question regarding a CwinThread question

I was pointed to a article on the code project

the following is the URL wwww.codeproject.com/KB/threads/extended_thread_aspx

my question is regarding the following snipet of code from the Article

CThreadEx::CThreadEx (AFX_THREADPROC pfnThreadProc) : CWinThread (pfnThreadProc, NULL) {
m_bAutoDelete = FALSE;

// Undocumented variable. Need to set the thread parameters variable to this
m_pThreadParams = this;
}

The author uses a inilizer list to pass paramters to the base Class'es contructer I have no problem

With this

My problem is the next line of code m_pThreadParam = this

The author points out that this contructer isn't the one documented AFXWIN.H

However I found a more complete discription of the CWinthread in the following PPT
presentation below is the URL
ttp://74.125.47.132/search?q=cache:azRHOpLik8MJ:www.ecs.syr.edu/faculty/fawcett/handouts/cse778/Lecture7/Additional%2520Thread%2520Info/threads.ppt+MORE+ON+THREADS+BUKIN&hl=en&ct=clnk&cd=1&gl=us

Anyway on page 5 of the PPT presentation is a more complete descrption of the CWinThread
Class

and m_pThreadParams seems to be a private member of the base Class CWinThread Class

I haven't build the code in the article but I am wondering if it would work
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
BobInNJ9-Mar-09 7:32
BobInNJ9-Mar-09 7:32 
QuestionRe: Accessing Private member of a base Class from a Derived Class Pin
David Crow9-Mar-09 8:28
David Crow9-Mar-09 8:28 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:23
ForNow9-Mar-09 12:23 
GeneralRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:33
ForNow9-Mar-09 12:33 
QuestionI use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Astitva239-Mar-09 5:10
Astitva239-Mar-09 5:10 
AnswerRe: I use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Eytukan9-Mar-09 5:31
Eytukan9-Mar-09 5:31 
Generaloverlayered text Pin
Astitva239-Mar-09 5:57
Astitva239-Mar-09 5:57 
GeneralRe: overlayered text Pin
Eytukan9-Mar-09 6:03
Eytukan9-Mar-09 6:03 
GeneralRe: overlayered text Pin
Astitva239-Mar-09 8:05
Astitva239-Mar-09 8:05 
Questionunicode application Pin
tom groezer9-Mar-09 4:47
tom groezer9-Mar-09 4:47 
QuestionRe: unicode application Pin
David Crow9-Mar-09 4:49
David Crow9-Mar-09 4:49 
AnswerRe: unicode application Pin
Eytukan9-Mar-09 5:04
Eytukan9-Mar-09 5:04 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:03
tom groezer9-Mar-09 7:03 
GeneralRe: unicode application Pin
Eytukan9-Mar-09 7:35
Eytukan9-Mar-09 7:35 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:45
tom groezer9-Mar-09 7:45 
GeneralRe: unicode application Pin
Jeremy Falcon9-Mar-09 8:09
professionalJeremy Falcon9-Mar-09 8:09 
Questionsockets in MFC Pin
hrishiS9-Mar-09 2:16
hrishiS9-Mar-09 2:16 

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.