comp.lang.ada
 help / color / mirror / Atom feed
From: Szymon Guz <alpha@skynetSMIECI.VONorg.NOJUSZpl>
Subject: function from dll
Date: Thu, 22 Jan 2004 21:36:24 +0100
Date: 2004-01-22T21:36:24+01:00	[thread overview]
Message-ID: <bupck6$rqm$1@nemesis.news.tpi.pl> (raw)

Hi,
I've got maybe a trivial question but I still can't solve the problem:

I've a dll written in C under Windows and I want to use specific 
function from that in my Ada program. For loading the library I use the 
WinApi function LoadLibrary and then I use the function GetProcAddress 
to get the Win32.Windef.FARPROC handle to the function that I need. I 
need to map the function from the dll in Ada to have sth like that:

<C++ CODE>
void sth(){}
</C++ CODE>

<ADA CODE>
function sth() return Integer;
</ADA CODE>

now I want to run in the ada function body the function from dll... well 
how to use the Win32.Windef.FARPROC handle ?

Szymon Guz





             reply	other threads:[~2004-01-22 20:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22 20:36 Szymon Guz [this message]
2004-01-22 23:43 ` function from dll Stephen Leake
2004-01-23  1:59   ` tmoran
2004-01-23  6:05 ` Per Sandberg
replies disabled

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