comp.lang.ada
 help / color / mirror / Atom feed
* function from dll
@ 2004-01-22 20:36 Szymon Guz
  2004-01-22 23:43 ` Stephen Leake
  2004-01-23  6:05 ` Per Sandberg
  0 siblings, 2 replies; 4+ messages in thread
From: Szymon Guz @ 2004-01-22 20:36 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-23  6:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-22 20:36 function from dll Szymon Guz
2004-01-22 23:43 ` Stephen Leake
2004-01-23  1:59   ` tmoran
2004-01-23  6:05 ` Per Sandberg

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