From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,adf78995e627c64b,start X-Google-Attributes: gid1014db,public X-Google-Thread: f7a51,adf78995e627c64b,start X-Google-Attributes: gidf7a51,public X-Google-Thread: 109fba,adf78995e627c64b,start X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,adf78995e627c64b,start X-Google-Attributes: gid103376,public From: "bill rawlinson" Subject: passing an Hwnd from a C lang prog to a MFC dll Date: 1999/12/13 Message-ID: <385561c4.0@munix01.marshall.edu>#1/1 X-Deja-AN: 560242477 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,microsoft.public.vc.language X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Date: 1999-12-13T00:00:00+00:00 List-Id: ----------this message is cross posted between the following newsgroups comp.lang.ada, comp.lang.c, comp.lang.c++, microsoft.public.vc.language ----------thanks :O) Does anyone here know if the following is possible.. from a C program I want to pass an hwnd for my current window to a MFC DLL written with VC++ 5. Within the dll I create a small status window with the progress meter, a status line, animation..etc.. this is created by creating an instance of the CDialog class. which requires a pointer to a Cwnd. as my C program, or an Ada program, don't use classes but do have an Hwnd, which is a member of the CDialog::m_Hwnd I want to be able to associate the passed Hwnd with a Cwnd so that I can create the instance of the CDialog. Cwnd::Attach(new Hwnd) doesn't work.. is there a way? or am I wasting my time?? Has anyone of you ever attempted this before?? thanks Bill Rawlinson