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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2d9f7ffcfcf57257 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-23 13:36:25 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!nntpserver.swip.net!not-for-mail Message-ID: <403A7237.90103@nowhere.com> From: Leif Holmgren User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: sv, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: delphi to ada translator References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.101.94.250 X-Complaints-To: news-abuse@swip.net X-Trace: nntpserver.swip.net 1077572171 213.101.94.250 (Mon, 23 Feb 2004 22:36:11 MET DST) NNTP-Posting-Date: Mon, 23 Feb 2004 22:36:11 MET DST Organization: A Customer of Tele2 X-Sender: s-219882@d213-101-94-250.swipnet.se Date: Mon, 23 Feb 2004 22:35:51 +0100 Xref: archiver1.google.com comp.lang.ada:5753 Date: 2004-02-23T22:35:51+01:00 List-Id: Craig Carey wrote: > Has anybody succeed in putting Delphi code inside of a DLL and > getting it called by a GNAT Ada 95 main program (inside of a *.exe > file) ?. Yes, I have about 2 years ago, using Delphi 3 and gnat 3.15a1. It took a while to figure out how to generate the files required by gnat. (.lib-files?). All the tools needed was available with gnat. I also think I remember > Any URLs saying how to put Delphi GUIs inside of DLLs ?. No, Did this with Delphi 1 in 1995 (called from a VB3 app). Never caused any problems. Autocreate of forms naturally won't work. You create an procedural interface that call the form-stuff inside the DLL. You should also be able to create an ActiveX interface that you can use from Ada, but all my attempts to do this has resulted in loads of unreadable code that worked but was not reliable. I guess it leaked memory but I could never find the leaks. Do a web-search for a package called gnatcom. It contains the stuff you need for Ada/COM interfacing. Sorry for not beeing able to be very precise. I really don't remember how I did most of this stuff. /Leif