comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter Hend�n" <phenden@tdab.com>
Subject: Re: generation of bindings
Date: Thu, 18 Oct 2001 09:44:17 GMT
Date: 2001-10-18T09:44:17+00:00	[thread overview]
Message-ID: <Rvxz7.905$Z_1.241992@newsc.telia.net> (raw)
In-Reply-To: 3BCE7FAF.94172DA4@icn.siemens.de

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

"Alfred Hilscher" wrote:
> I have a DLL (on WinNT) where I want write (Ada-) bindings for. I wrote
> a package spec like:
>
> package XY_Binding is
>   procedure AB;
>
>   pragma Import (Stdcall, AB, "AB");
> end XY_Binding;
You'll find most of this covered in the GNAT user's guide in the
section "Using DLLs with GNAT". If your .dll has no import library
(a .lib or .a file), you'll need to create one. For this you can use the
dll2def and the gnatdll utilities also described in the user's guide.

I hope this helps.

Regards,
Peter H.
--
Peter Hend�n           http://www.algonet.se/~phenden
ICQ: 14672398
Teknisk Dokumentation AB          http://www.tdab.com





  reply	other threads:[~2001-10-18  9:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-18  7:07 generation of bindings Alfred Hilscher
2001-10-18  9:44 ` Peter Hend�n [this message]
2001-10-18 12:53   ` Alfred Hilscher
replies disabled

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