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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2cb1f0b6d642e1dc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!n10g2000yqf.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Pascal Calling Convention Date: Thu, 24 Mar 2011 14:29:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2f40dd16-0b13-4525-9cfa-cf1dbfd482ec@n10g2000yqf.googlegroups.com> References: <9b04626e-567d-408c-aab3-39b964b3ffd6@l2g2000prg.googlegroups.com> NNTP-Posting-Host: 81.62.106.109 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1301002158 8912 127.0.0.1 (24 Mar 2011 21:29:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Mar 2011 21:29:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n10g2000yqf.googlegroups.com; posting-host=81.62.106.109; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19407 Date: 2011-03-24T14:29:18-07:00 List-Id: On Mar 23, 10:37=A0pm, Shark8 wrote: > I was looking around for a way to use the Pascal calling convention in > GNAT; particularly because I thought it might be nice to do the GUI- > stuff in good old Delphi 5 and the application itself in Ada. All > easily doable via DLL or, possibly, through the $L compiler directive > which specifies a .obj file to link to. If you start the GUI from scratch, it is perhaps a good idea to consider using GWindows instead. Did you have a look ? The library is there: http://sf.net/projects/gnavi/ You can use ResEdit http://www.resedit.net/ for the GUI design, the code generator (GWenerator) packaged with GWindows, that generates the appropriate packages in the background. Add to it free graphical elements like from there: http://www.iconarchive.c= om/ and you can make absolutely sexy UIs for Windows, all with GNAT, without any worry about DLLs, pragmas, calling conventions, etc., all for free! Tempting, isn't it ? Basically you press F4 in GPS and you get your .exe ... (in the automatic mode, the GWenerator also calls gnatmake, so you don't even need to press a key!) Cheers ______________________________________________________________ Gautier's Ada programming -- http://gautiersblog.blogspot.com/ NB: follow the above link for a valid e-mail address