From: Ted Dennison<dennison@telepath.com>
Subject: Re: GNAT and a very foreign DLL
Date: Fri, 04 Jan 2002 22:20:47 GMT
Date: 2002-01-04T22:20:47+00:00 [thread overview]
Message-ID: <3VpZ7.4448$cD4.8663@www.newsranger.com> (raw)
In-Reply-To: mailman.1010181542.30574.comp.lang.ada@ada.eu.org
In article <mailman.1010181542.30574.comp.lang.ada@ada.eu.org>, 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.
next prev parent reply other threads:[~2002-01-04 22:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 22:04 GNAT and a very foreign DLL Alexandre E. Kopilovitch
2002-01-04 22:20 ` Ted Dennison [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-01-06 0:31 Alexandre E. Kopilovitch
2002-01-07 16:19 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox