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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,94d3b604ce565768 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: How do I use Direct_IO many times on the same opened file? Date: 1997/07/29 Message-ID: <33DE4F1F.27C3@gsfc.nasa.gov>#1/1 X-Deja-AN: 260293731 References: <33D8D284.16EB@mail.connect.usq.edu.au> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1997-07-29T00:00:00+00:00 List-Id: Matthew Kennedy asks about multiple use clauses hiding a type. The short answer is to use a fully qualified name: Bitmap_File : BMP_Palette_IO.File_Type; However, this will not get you there; you cannot read the header from one file object and then the pallette from another file object. The solution is to use Ada Streams. I've got code (at home) that reads BMP files, based on the Win32Ada binding. It compiles with gnat and ObjectAda. Unfortunately, it's part of a (very slow) effort to write a clean (and distributable) Win32 binding, so it's not a small package. email me if you are interested; I could post it on my home web page if there is enough interest. If anyone else is interested in working on a clean, distributable Win32 binding, maybe we could collaborate. For me, the effort mainly serves as a way to learn Ada 95 and Win32, but maybe it will be more broadly useful. My approach is to implement enough of a system to write a card game, then worry about the rest as I need it. -- - Stephe Stephen.Leake@gsfc.nasa.gov (work) leakstan@erols.com (home)