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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1044a3857acae1e1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-07 08:29:27 PST Path: archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: GNAT and a very foreign DLL Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Mon, 07 Jan 2002 11:19:41 EST Organization: http://www.newsranger.com Date: Mon, 07 Jan 2002 16:19:41 GMT Xref: archiver1.google.com comp.lang.ada:18604 Date: 2002-01-07T16:19:41+00:00 List-Id: In article , Alexandre E. Kopilovitch says... >Because with that Link_Name the suffix "@nn" is still appended. As the GNAT >User's Guide honestly says (at the end of Microsoft Windows Topics/Windows >Calling Conventions/Stdcall Calling Convention section): >"... there is no trailing underscore but the appropriate @nn is always added >at the end of the Link_Name by the compiler. " Yuck. I can see where they'd want to make it work this way, so that things are easier on the average Windoze developer. But it really hoses you now when you need that parameter to do exactly what it was put in the spec for. OTOH, If you feed "External_Name" the exact same name and convention that the C header file uses, then you ought to be receiving the same thing that the C header file receives. I don't understand why that isn't working for you, assuming you are linking in the same library files. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.