comp.lang.ada
 help / color / mirror / Atom feed
From: dmitry6243@my-deja.com
Subject: Re: Ada / Visual C++ Integration
Date: 2000/03/27
Date: 2000-03-27T00:00:00+00:00	[thread overview]
Message-ID: <8bndqj$jec$1@nnrp1.deja.com> (raw)
In-Reply-To: 8bgahs$6m7$1@nnrp1.deja.com

In article <8bgahs$6m7$1@nnrp1.deja.com>,
haughton1228@my-deja.com wrote:
> Any insight that anyone could offer would be greatly appreciated.
>
> I am trying to understand how to set up a similar environment in the
NT
> world.	We would like to use Microsoft Visual C++ and MFC to
re-create the
> GUI (~100 non-trivial displays), adapt supporting C/C++ code from
X-Windows
> to Windows, and port the Ada code to the NT platform with as little
change as
> possible. Theoretically, with the right bindings and compiler/linker
options,
> I should be able to compile the C++ gui and Ada code and link the
resulting
> objects together into a single Ada executable. I have been prototyping
using
> GNU Ada. The Win32Ada bindings there only implement the Win32 APIs,
not MFC,
> so I'm thinking that this would force me to use the lower level Win32
APIs to
> interact with all of the MFC graphical objects created by VC++. The
> documentation gives enough info to make me believe that this is
possible, but
> I haven't succeeded in making it work.

I suspect that you really need MFC. If you take a look at MFC's
graphical objects, you'll see that they are very thin wrappers around
Windows objects. Use Win32 directly. You can still use MSVC GUI builder,
however without "class wizard".

There is also another way. Write your own graphical primitives with MFC
or without it, make them have pure C interface and use the package
Interfaces.C to interact with.

Regards,
Dmitry Kazakov


Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-03-27  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-24  0:00 Ada / Visual C++ Integration haughton1228
2000-03-24  0:00 ` Ed Falis
2000-03-27  0:00 ` dmitry6243 [this message]
2000-03-31  0:00 ` David Botton
replies disabled

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