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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1149539ccb97b04c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-15 21:12:00 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!enst!enst.fr!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: Win32 filetype problem Date: Sun, 16 Sep 2001 00:11:00 -0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1000613519 14145 137.194.161.2 (16 Sep 2001 04:11:59 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 16 Sep 2001 04:11:59 +0000 (UTC) To: Return-Path: X-pair-Authenticated: 216.254.101.195 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:13098 Date: 2001-09-16T00:11:00-04:00 > Even if you don't use the POSIX binding directly, it's a good > source for seeing how to use the Window's API. I would also suggest looking at the body of GWindows packages (http://www.adapower.com/gwindows) for an alternative style to using the Win32 bindings. It is easier to roll your own and take advantage of Ada's superior ability to interface with C over a raw translated binding. Although GWindows does not include support for most file related functions since GNAT has very good packages for handling that already: I _HIGHLY_ recommend looking at GNAT.OS_Lib (take a look at /GNAT/lib/gcc-lib/pentium-mingw32msv/2.8.1/adainclude/g-os_lib.ads) and GNAT.Directory_Operations (/GNAT/lib/gcc-lib/pentium-mingw32msv/2.8.1/adainclude/g-dirope.ads) I highly recommend spending time looking through the directory above at all the g-* files for a lot of "goodies". Also, look at http://www.adapower.com/lang there is a section of examples on using some of the GNAT packages there. David Botton