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,71ea647f36e7583b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-04 14:20:52 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cpk-news-hub1.bbnplanet.com!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!hermes.visi.com!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: <3VpZ7.4448$cD4.8663@www.newsranger.com> 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: Fri, 04 Jan 2002 17:20:47 EST Organization: http://www.newsranger.com Date: Fri, 04 Jan 2002 22:20:47 GMT Xref: archiver1.google.com comp.lang.ada:18566 Date: 2002-01-04T22:20:47+00:00 List-Id: In article , Alexandre E. Kopilovitch says... > The problem appears to be with the combination of the call convention and >the names of the DLL's entry points: the call convention is surely Stdcall, >but the entry point names do not contain usual suffixes "@nn" - they look as >common C identifiers. .. > As the Stdcall convention is unavoidable anyway, I was forced to create some >"post-linker", which post-processes my executable, replacing "@" in the DLL's >entry point names by zero bytes. After that post-processing all works fine, If the problem is just the name, why don't you just use the "Link_Name" parameter to "pragm Import" to specify the name they actually used? However, you may want to check the C header files for that routine to make sure the calling convention is what you think it is. I have seen DLL's with routines with different conventions in them before. --- 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.