Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [out] parameters for ActiveX control interface Pin
Ian Bowler14-Jun-05 8:36
Ian Bowler14-Jun-05 8:36 
Generalbizarre asm problem Pin
heebiejeebies14-Jun-05 5:19
heebiejeebies14-Jun-05 5:19 
GeneralCOleDateTime AddDays() Pin
DanYELL14-Jun-05 4:57
DanYELL14-Jun-05 4:57 
GeneralRe: COleDateTime AddDays() Pin
David Crow14-Jun-05 2:10
David Crow14-Jun-05 2:10 
GeneralRe: COleDateTime AddDays() Pin
DanYELL14-Jun-05 5:56
DanYELL14-Jun-05 5:56 
GeneralRe: COleDateTime AddDays() Pin
David Crow14-Jun-05 3:03
David Crow14-Jun-05 3:03 
GeneralConvert CString to CTime / COleDateTime Pin
P-Rex14-Jun-05 4:39
P-Rex14-Jun-05 4:39 
GeneralRe: Convert CString to CTime / COleDateTime Pin
David Crow14-Jun-05 2:07
David Crow14-Jun-05 2:07 
GeneralRe: Convert CString to CTime / COleDateTime Pin
P-Rex14-Jun-05 5:17
P-Rex14-Jun-05 5:17 
GeneralRe: Convert CString to CTime / COleDateTime Pin
David Crow14-Jun-05 2:22
David Crow14-Jun-05 2:22 
GeneralRe: Convert CString to CTime / COleDateTime Pin
DavidR_r14-Jun-05 8:00
DavidR_r14-Jun-05 8:00 
GeneralRe: Convert CString to CTime / COleDateTime Pin
David Crow14-Jun-05 8:04
David Crow14-Jun-05 8:04 
GeneralRe: Convert CString to CTime / COleDateTime Pin
JWood14-Jun-05 6:03
JWood14-Jun-05 6:03 
GeneralRe: Convert CString to CTime / COleDateTime Pin
P-Rex14-Jun-05 20:22
P-Rex14-Jun-05 20:22 
Questionmake stacktrace or what calls DllCanUnloadNow? Pin
ThinkingPrometheus14-Jun-05 4:21
ThinkingPrometheus14-Jun-05 4:21 
GeneralLooking for Dialog Manager component for VC++ 7. Pin
mlatimer14-Jun-05 4:00
mlatimer14-Jun-05 4:00 
QuestionHow to run a thread as a member function of a class? Pin
Eytukan14-Jun-05 3:45
Eytukan14-Jun-05 3:45 
AnswerRe: How to run a thread as a member function of a class? Pin
Bob Stanneveld14-Jun-05 4:08
Bob Stanneveld14-Jun-05 4:08 
GeneralRe: How to run a thread as a member function of a class? Pin
Eytukan14-Jun-05 1:43
Eytukan14-Jun-05 1:43 
GeneralRe: How to run a thread as a member function of a class? Pin
Bob Stanneveld14-Jun-05 1:49
Bob Stanneveld14-Jun-05 1:49 
GeneralRe: How to run a thread as a member function of a class? Pin
Eytukan14-Jun-05 1:55
Eytukan14-Jun-05 1:55 
GeneralRe: How to run a thread as a member function of a class? Pin
Eytukan14-Jun-05 2:06
Eytukan14-Jun-05 2:06 
GeneralRe: How to run a thread as a member function of a class? Pin
David Crow14-Jun-05 2:20
David Crow14-Jun-05 2:20 
GeneralRe: How to run a thread as a member function of a class? Pin
Bob Stanneveld14-Jun-05 21:17
Bob Stanneveld14-Jun-05 21:17 
Hello,

Sorry for this late reply..

A couple of things:
<list>
  • You pass a pointer x, that points to a MyWindow object to the thread as parameter, but you don't use it in either of your threads..
  • You call AfxGetApp() to get the value of m_pMainWnd
  • Your main app window is x
  • MyWindow derives from Test
    Thinking about all these things don't ring a bell? Anyway, what you want to achieve can be done in at least the following 2 ways:
    static_cast<MyWindow*>(AfxGetApp()->m_pMainWnd)->Text;

    static_cast<MyWindow*>(lp)->Text;


    Hope this helps Big Grin | :-D

    Behind every great black man...
                ... is the police. - Conspiracy brother


    Blog[^]

  • AnswerRe: How to run a thread as a member function of a class? Pin
    Cedric Moonen14-Jun-05 1:57
    Cedric Moonen14-Jun-05 1:57 

    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.