From: tmoran@acm.org
Subject: Re: function from dll
Date: Fri, 23 Jan 2004 01:59:12 GMT
Date: 2004-01-23T01:59:12+00:00 [thread overview]
Message-ID: <Qd%Pb.129011$na.140378@attbi_s04> (raw)
In-Reply-To: mailman.3.1074815001.2270.comp.lang.ada@ada-france.org
> well how to use the Win32.Windef.FARPROC handle ?
The relevant Claw routine has the spec and comments:
function Get_Proc_Address (DLL_Object: in DLL_Type;
Sub_Name: in String)
return Claw.Any_Subprogram_Access_Type;
--
-- Get the address of the subprogram named Sub_Name in the
-- already-loaded DLL, indicated by the DLL_Object. Sub_Name
-- is the full subprogram name as exported from the DLL, with
-- exactly the same case and spelling.
--
-- Raises:
-- Not_Valid_Error if DLL_Object was not previously initialized
-- using Load.
-- Windows_Error if Windows returns an error.
--
-- Note: The user will need to do an Unchecked_Conversion of the
-- returned value into an access-to-subprogram variable with
-- the appropriate convention, parameters, and result in order
-- to actually call the DLL function from Ada. The returned
-- value is useful only for a parameterless procedure.
--
next prev parent reply other threads:[~2004-01-23 1:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-22 20:36 function from dll Szymon Guz
2004-01-22 23:43 ` Stephen Leake
2004-01-23 1:59 ` tmoran [this message]
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