comp.lang.ada
 help / color / mirror / Atom feed
From: Torsten.Neuer@t-online.de (Torsten Neuer)
Subject: Re: DLL and Ada
Date: 1998/02/01
Date: 1998-02-01T00:00:00+00:00	[thread overview]
Message-ID: <6b0egs$m3s$1@news00.btx.dtag.de> (raw)
In-Reply-To: 01bd2ea3$956345e0$LocalHost@xhv46.dial.pipex.com


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 <colson13@club-internet.fr> 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




      parent reply	other threads:[~1998-02-01  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-31  0:00 DLL and Ada Colson Eric
1998-01-31  0:00 ` Nick Roberts
1998-02-01  0:00   ` Jerry van Dijk
1998-02-01  0:00   ` Torsten Neuer [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox