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,a160a03a229a5521 X-Google-Attributes: gid103376,public From: cdecker@snet.net (Decker, Christian R) Subject: Re: Graphic and C/C++ programs in Ada? Date: 1999/06/17 Message-ID: <2a4a3.2401$S7.1250712@WReNphoon3>#1/1 X-Deja-AN: 490615729 References: <7k9t72$8k2$1@nnrp1.deja.com> X-Trace: WReNphoon3 929615614 10.0.2.36 (Thu, 17 Jun 1999 03:33:34 PDT) Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here NNTP-Posting-Date: Thu, 17 Jun 1999 03:33:34 PDT Newsgroups: comp.lang.ada Date: 1999-06-17T00:00:00+00:00 List-Id: I don't know of any _standard_ Ada libraries that include similar routines to the gotoxy. I have seen some non-standard packages that will perform these functions however, but you would have to search for them. As far as Ada and C/C++ this is possible. I have posted some questions relating to this topic. I have done extensive interfacing with C/C++ using Ada. There are some tricks when C++ gets invloved due to the wonderful 'name mangling' that C++ compilers do, but good ol' C is no prob. Create an Ada package that prototypes the C function you wish to interface to. Use a procedure prototype for functions with no return values. Make sure you match the parameter profile. Ada95 has an Interfaces.C package which is very useful. i.e. Package X is procedure C_Function ( Param1 : Integer ) ; pragma Import ( C , C_Function , "C_Function") ; end X ; See earlier questions on Ada to C++ for info on that. Once you have the protype, just add the object or lib file to gnatlink to resolve the interfaced functions. Also.... As far as writing graphical programs with Ada, it is possible. Gnat 3.11 has built in Win32 libraries so if you program the Win API using C, you can do it with Gnat 3.11. Also there are bindings to the X windows system as well. Just search for them on the Net. It is quite easy to get working. I have also created my own bindings to the OpenGL routines on an SGI machine, but would work on any Unix box. If anyone is interested in getting the bindings, post it and i'll try to get you the source. Anyway.. good luck. -**** Posted from RemarQ, http://www.remarq.com/?a ****- Search and Read Usenet Discussions in your Browser - FREE -