From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b70e24be869672e6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-22 12:40:55 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!teaser.fr!blob.linuxfr.org!212.27.32.7!proxad.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Szymon Guz Newsgroups: comp.lang.ada Subject: function from dll Date: Thu, 22 Jan 2004 21:36:24 +0100 Organization: tp.internet - http://www.tpi.pl/ Message-ID: NNTP-Posting-Host: hal.skynet.org.pl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nemesis.news.tpi.pl 1074804167 28502 195.116.185.50 (22 Jan 2004 20:42:47 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Thu, 22 Jan 2004 20:42:47 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: pl, en-us, en Xref: archiver1.google.com comp.lang.ada:4679 Date: 2004-01-22T21:36:24+01:00 List-Id: 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: void sth(){} function sth() return Integer; 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