comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: sizeof in ADA
Date: Fri, 05 Aug 2005 17:15:59 +0200
Date: 2005-08-05T17:16:13+02:00	[thread overview]
Message-ID: <42f382bd$0$11763$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <1123252961.173046.299550@o13g2000cwo.googlegroups.com>

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.



  parent reply	other threads:[~2005-08-05 15:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05 14:42 sizeof in ADA sisi.ard
2005-08-05 14:57 ` Lutz Donnerhacke
2005-08-05 15:19   ` Marc A. Criley
2005-08-05 15:46     ` Lutz Donnerhacke
2005-08-05 15:15 ` Georg Bauhaus [this message]
2005-08-05 15:46 ` cdm
2005-08-05 16:00 ` Jeffrey Carter
2005-08-05 17:16 ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox