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,8141f2ef049fcd7e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-11 10:12:54 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!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.!newsb.telia.net.POSTED!not-for-mail From: "Peter Hend�n" Newsgroups: comp.lang.ada References: <%lfx7.6$_o6.503@newsc.telia.net> Subject: Re: Help with GNAT, WinNT, StdCall, dll, exported names X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <_Hjx7.34$x5.5171@newsb.telia.net> Date: Thu, 11 Oct 2001 16:23:22 GMT NNTP-Posting-Host: 213.67.175.183 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1002817402 213.67.175.183 (Thu, 11 Oct 2001 18:23:22 CEST) NNTP-Posting-Date: Thu, 11 Oct 2001 18:23:22 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:14299 Date: 2001-10-11T16:23:22+00:00 List-Id: "Stephen Leake" wrote: > You don't mention what C compiler you are using. I have found that > different C compilers (and different Ada compilers) have different > naming conventions, usually having to do with prepending and > underscore. Here's my matrix: Yes, the problem is related to prefixing with _ and suffixing with @nn, but the service that uses my dll, expects the name Foobar, without any pre- or suffix. I can easily accmplish this with the C convention, but it seems impossible with the StdCall convention. Please note that I have no control whatsoever over how my dll is called. Thanks, Peter H. -- Peter Hend�n http://www.algonet.se/~phenden ICQ: 14672398 Teknisk Dokumentation AB http://www.tdab.com