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,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3d003adc56d89c98 X-Google-Attributes: gid103376,public From: dmitry6243@my-deja.com Subject: Re: Ada / Visual C++ Integration Date: 2000/03/27 Message-ID: <8bndqj$jec$1@nnrp1.deja.com>#1/1 X-Deja-AN: 602892139 References: <8bgahs$6m7$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 212.79.192.251 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Mar 27 10:40:22 2000 GMT X-MyDeja-Info: XMYDJUIDdmitry6243 Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-03-27T00:00:00+00:00 List-Id: 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.