comp.lang.ada
 help / color / mirror / Atom feed
From: Szymon Guz <alpha@skynetSMIECI.VONorg.NOJUSZpl>
Subject: Re: LoadLibrary problem
Date: Mon, 12 Jan 2004 17:20:15 +0100
Date: 2004-01-12T17:20:15+01:00	[thread overview]
Message-ID: <btuhlo$g3b$1@atlantis.news.tpi.pl> (raw)
In-Reply-To: <hZnMb.31463$qC.15980@bignews3.bellsouth.net>

David C. Hoos wrote:
> The mistake is that you need to tell the linker where to find the file
> that contains the "LoadLibrary" object code.
> 
> If you use the Win32ada library, it's found in libole32.a.
> 
> 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
>     pragma Import(Stdcall, LoadLibraryW, "LoadLibraryW");         -- 
> winbase.h:3625
>     pragma Import(Stdcall, LoadLibraryExA, "LoadLibraryExA");     -- 
> winbase.h:3637
>     pragma Import(Stdcall, LoadLibraryExW, "LoadLibraryExW");     -- 
> winbase.h:3645
> 
> Also, note that the C calling convention is not the proper convention for
> use with
> Win32 libraries.
> 
> I hope this helps
> 

yea, that helped a lot
tnx




      parent reply	other threads:[~2004-01-12 16:20 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
2004-01-12 16:20   ` Szymon Guz [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox