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-Thread: 103376,bb020506b8efd1bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed.stueberl.de!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Fri, 05 Aug 2005 17:15:59 +0200 From: Georg Bauhaus User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: sizeof in ADA References: <1123252961.173046.299550@o13g2000cwo.googlegroups.com> In-Reply-To: <1123252961.173046.299550@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42f382bd$0$11763$9b4e6d93@newsread4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Aug 2005 17:16:13 MEST NNTP-Posting-Host: 8561c904.newsread4.arcor-online.net X-Trace: DXC=DLQ_FoI5C]Cl=9hLK`A7fM:ejgIfPPldDjW\KbG]kaMH]kI_X=5KeaFkVI`6=g]B7IhP3YJKgE\jLXRUe3SL\VhE X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3979 Date: 2005-08-05T17:16:13+02:00 List-Id: sisi.ard@laposte.net wrote: > I would like to know how to write an equivolent of the C function > "sizeof " > in Win32ADA to use with the GDI function " getobject " like this : > > Buffer_Size:=Getobject(Mon_Bitmap, > Sizeof(Bitmap), -- this line obviously don't works > Buffer); What is the Ada type of Bitmap? from GetObject: hObject ... nCount int Secifies the number of bytes to be copied to the buffer lpObject ... What do you want to copy? The bitmap related structures in the Window API provide information to compute the size of the bitmap in bytes IIRC.