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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,34f2e29278f75bc5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-18 03:15:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed.rt.ru!news-stob.telia.net!news-sto.telia.net!194.22.194.4.MISMATCH!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: "Peter Hend�n" Newsgroups: comp.lang.ada References: <3BCE7FAF.94172DA4@icn.siemens.de> Subject: Re: generation of bindings X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 18 Oct 2001 09:44:17 GMT NNTP-Posting-Host: 213.67.175.183 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1003398257 213.67.175.183 (Thu, 18 Oct 2001 11:44:17 CEST) NNTP-Posting-Date: Thu, 18 Oct 2001 11:44:17 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:14870 Date: 2001-10-18T09:44:17+00:00 List-Id: "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