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,de5ea99ff7087158 X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: Gnat doing DLL Date: 1998/09/28 Message-ID: #1/1 X-Deja-AN: 395797764 References: <360d48a6.8681576@news.inet.tele.dk> Organization: * JerryWare *, Leiden, Holland Newsgroups: comp.lang.ada Date: 1998-09-28T00:00:00+00:00 List-Id: Vagn Petersen (vagn_sp@post1.tele.dk) wrote: : I am in the process of writing a user interface to a number of : ADA-written functions. : The user interface is based on Windows and is written in Delphi 4.0 What I understand is that: a) you have a number of packages written in Ada b) you want to develop a native Win32 user interface c) you want to use GNAT 3.10p1 for compiling the Ada code d) you want to use Delphi to build the user interface : I know very little about Ada but assume that it is possible to compile : the various Ada packages to some sort of object-code which then may be : linked in an DLL-file. What I understand is that your idea is to compile and link the Ada packages as a DLL, to be able to call them from Delphi. Unfortunately, building generally useful DLL's with GNAT 3.10p can be done, but is a bit of a black art. You really need to know a lot about GNAT's evironment to pull it off. Building non-relocatable DLL's can be done, but you have to take your changes regarding their memory location. The easiest way in your particular situation would be to use the ObjectAda compiler (not the free version, since it does not support generating DLL's). Or to wait to see if GNAT 3.11p (who might be released is a couple of weeks) will solve this problem. Jerry. -- -- Jerry van Dijk | email: jdijk@acm.org -- Leiden, Holland | member Team-Ada -- Ada & Win32: http://stad.dsl.nl/~jvandyk