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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cadcb8a76199b049 X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: How to handle Bitmaps in Gnat Ada95. Date: 1999/09/14 Message-ID: <3LvD3.35$Fh.6235@typhoon-sf.snfc21.pbi.net>#1/1 X-Deja-AN: 525057117 References: <7rlr17$ni6$1@nnrp1.deja.com> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 937330751 207.214.215.91 (Tue, 14 Sep 1999 10:39:11 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Tue, 14 Sep 1999 10:39:11 PDT Newsgroups: comp.lang.ada Date: 1999-09-14T00:00:00+00:00 List-Id: >is looking for a function concatenated to "@20", and y don't know what >this means. The @20 means there are 20 bytes of parameters, which most likely means there are 5, 4-byte parameters. So if you declared, say, function Some_Function(a,b,c,d,e : Integer) return Integer; pragma Import(Stdcall, Some_Function, "someFunction"); the compiler would generate a reference to someFunction@20. The most likely problem is that it needs 4, or 6, or some other number of parameters. Thus if the library contains function someFunction(a,b,c: Integer) return Integer; it will have an entry for someFunction@12, but not someFunction@20. >Ps: another question, anybody knows how to create a window in Windows >for handling pixels, using the library (the Win32 API). Yes. Claw, of course, does it. Note that Bitmaps (Device Dependent Bitmaps) and DIBitmaps (Device Independent Bitmaps) are different things in Windows. A Bitmap is a processed thing that you can quickly paint into a window, but it's hard to get at its pixels. A Device Independent Bitmap is essentially a .bmp file (minus a little header) that contains a rectangular array of pixels. It sounds like you are more interested in a DIBitmap. SetDIBitsToDevice will draw a DIBitmap.