From: Thomas Krueger on
Hello,

i've got a problem calling a dll. This dll is written in C. I've build a
specification file where i described all types and function prototypes. I've
tried to link the dll with dynamically using Loadlibrary, GetProcAdress etc.
and statically using the import library.

In both ways my programm could be built without any problem. Some functions
from the dll can be called without a problem. But in some other cases the
function in the dll raises an internal error. But the dll works correctly
when called by a c programm.

Maybe you can help me - what are common errors by calling a dll with gnat?

Thanks in advance

Thomas


From: Stephen Leake on
"Thomas Krueger" <thomas.krueger2(a)uni-rostock.de> writes:

> Maybe you can help me - what are common errors by calling a dll with gnat?

This is far to general to answer.

Post the Ada and C specs for the functions that don't work, and maybe
we can help.

--
-- Stephe