From: tmoran@acm.org
Subject: Re: LoadLibrary problem
Date: Mon, 12 Jan 2004 06:18:02 GMT
Date: 2004-01-12T06:18:02+00:00 [thread overview]
Message-ID: <u_qMb.31470$I06.215096@attbi_s01> (raw)
In-Reply-To: hZnMb.31463$qC.15980@bignews3.bellsouth.net
>What's more, instead of writing your own interface, you can use
>the imports provided in the win32-winbase.ads file, viz.:
>
> pragma Import(Stdcall, LoadLibraryA, "LoadLibraryA"); --
>winbase.h:3619
> ...
>Also, note that the C calling convention is not the proper convention for
>use with Win32 libraries.
Or you could use Claw:
package CLAW.DLL is ...
type DLL_Type is new Ada.Finalization.Controlled with private;
procedure Load (DLL_Object: in out DLL_Type;
DLL_File: in String);
...
and let it worry about things like Ada->C strings, proper finalization of
the handle, and StdCall vs C.
next prev parent reply other threads:[~2004-01-12 6:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-11 22:27 LoadLibrary problem Szymon Guz
2004-01-12 2:54 ` David C. Hoos
2004-01-12 6:18 ` tmoran [this message]
2004-01-12 16:20 ` Szymon Guz
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox