From: "Antonio L�pez" <alm@gtd.es.REMOVE>
Subject: Win32 binding
Date: Tue, 23 Apr 2002 11:37:59 +0200
Date: 2002-04-23T11:37:59+02:00 [thread overview]
Message-ID: <aa39vt$4aj$1@nsnmpen2-gest.nuria.telefonica-data.net> (raw)
I am using the Win32 binding that comes with the Gnat compiler in order to
interface with the API of a Dll.
When searching for an use example of "type ULONG_Array is array (Natural
range <>) of aliased ULONG;", I found only one in win32-rpcndr.ads.
However instead of declare an array, it declares the elements alone, calling
for "storage unit bounday".
I have searched for "storage unit bounday", but I don0t understant the
concept and/or the problem. Can some enlight me, please?
Cheers,
Antonio
-- Reserved : Win32.ULONG_Array(0..6); -- rpcndr.h:802
-- @@ with GNAT the type ULONG_Array must be aligned at a storage
-- unit boundary. So I decided for now to declare Reserved<1..7>
-- instead.
Reserved1 : Win32.ULONG;
Reserved2 : Win32.ULONG;
Reserved3 : Win32.ULONG;
Reserved4 : Win32.ULONG;
Reserved5 : Win32.ULONG;
Reserved6 : Win32.ULONG;
Reserved7 : Win32.ULONG;
end record;
next reply other threads:[~2002-04-23 9:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-23 9:37 Antonio L�pez [this message]
2002-04-23 16:06 ` Win32 binding Stephen Leake
2002-04-23 17:22 ` Gary Scott
2002-04-24 10:46 ` Antonio López
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox