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 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: "Ed Falis" Subject: Re: Ada / Visual C++ Integration Date: 2000/03/24 Message-ID: #1/1 X-Deja-AN: 601860980 References: <8bgahs$6m7$1@nnrp1.deja.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 953923221 24.218.120.235 (Fri, 24 Mar 2000 13:40:21 EST) Organization: Road Runner X-MSMail-Priority: Normal NNTP-Posting-Date: Fri, 24 Mar 2000 13:40:21 EST Newsgroups: comp.lang.ada Date: 2000-03-24T00:00:00+00:00 List-Id: You could also look into glade/gtkAda as a possible solution that would result in platform-independent code. http://gtkada.eu.org/ - Ed (ACT) wrote in message news:8bgahs$6m7$1@nnrp1.deja.com... > Any insight that anyone could offer would be greatly appreciated. > > First some background. We currently have an application implemented on a DEC > Alpha Unix platform, developed utilizing Rational Apex as our Ada IDE and > UIMX as our C-based X-Windows GUI generator. We currently have thin bindings > between the Ada main programs and the C GUIs. We rename the C main to c_main > and call it at instantiation of the Ada executable to bring up the initial > display. Logic to support the displays is written either in C or Ada, with > the necessary externs and imports/exports to make this all work. > > 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. > > Another option could be to use AFC bindings provided as part of Aonix > ObjectAda to write an Ada MFC-based application from scratch (like the > Prosise examples), but can I use AFC to create an Ada executable with a MFC > front end created using the Visual C++ GUI builder? I have been looking in > comp.lang.ada, as well as www.gnat.com, www.aonix.com, and www.adapower.com > and microsoft sites, and haven't found this specific question answered. Are > there any other resources (web, print, etc.) that you could recommend? Would > a 'native' Ada gui builder (such as the one available from Aonix) be a better > solution? > > TIA, > Jim Haughton > > > Sent via Deja.com http://www.deja.com/ > Before you buy.