comp.lang.ada
 help / color / mirror / Atom feed
From: "bill rawlinson" <billrawlinson@hockeymail.com>
Subject: passing an Hwnd from a C lang prog to a MFC dll
Date: 1999/12/13
Date: 1999-12-13T00:00:00+00:00	[thread overview]
Message-ID: <385561c4.0@munix01.marshall.edu> (raw)

----------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








             reply	other threads:[~1999-12-13  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-13  0:00 bill rawlinson [this message]
1999-12-14  0:00 ` passing an Hwnd from a C lang prog to a MFC dll David Lowndes
1999-12-14  0:00   ` Mark McIntyre
1999-12-17  0:00     ` David Botton
1999-12-15  0:00   ` Bill Rawlinson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox