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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c04e7bb2fc34b078,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-23 02:40:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!not-for-mail From: "Antonio L�pez" Newsgroups: comp.lang.ada Subject: Win32 binding Date: Tue, 23 Apr 2002 11:37:59 +0200 Organization: Telefonica Data Espagna Message-ID: NNTP-Posting-Host: 195.76.14.164 X-Trace: nsnmpen2-gest.nuria.telefonica-data.net 1019554622 4435 195.76.14.164 (23 Apr 2002 09:37:02 GMT) X-Complaints-To: usenet@nsnmpen2-gest.nuria.telefonica-data.net NNTP-Posting-Date: Tue, 23 Apr 2002 09:37:02 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:22980 Date: 2002-04-23T11:37:59+02:00 List-Id: 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;