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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1c06033edd8790d0 X-Google-Attributes: gid103376,public From: Torsten.Neuer@t-online.de (Torsten Neuer) Subject: Re: DLL and Ada Date: 1998/02/01 Message-ID: <6b0egs$m3s$1@news00.btx.dtag.de>#1/1 X-Deja-AN: 321103772 Content-Transfer-Encoding: 7bit References: <6av7sf$9h3$1@newsfeeds.grolier.fr> <01bd2ea3$956345e0$LocalHost@xhv46.dial.pipex.com> X-Sender: 0462136423-0001@t-online.de Content-Type: text/plain; charset=us-ascii Organization: T-Online Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-02-01T00:00:00+00:00 List-Id: Nick Roberts wrote: > > The answer is definitely "yes". Ada provides pragmas and library packages > which make this sort of thing possible: see the Ada Reference Manual -- as > well as your compiler's guides -- for details. If your Ada compiler > doesn't support the use of DLLs, then you might be advised to seek another > compiler. > > Colson Eric wrote in article > <6av7sf$9h3$1@newsfeeds.grolier.fr>... > > Hello, > > > > I would like to known if it's possible to use in a ADA source a DLL wrote > > with C , under Win95. > > If there's a solution, could you explain how to proceed? It is not a matter of whether the compiler supports DLLs or not. You can import functions from Win DLLs with every validated Ada compiler that runs under Win. The only thing you need is a tool that extracts the library symbols from that DLL, i.e. makes a linkable library. Step 1: Produce a symbol library from the DLLs you want to use. Step 2: Write and Ada binding to that library using the proper Ada pragmas to import the symbols. Don't forget to put a pragma Linker_Options in the binding or else you will have to link the symbol library manually. Torsten