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,8a402d78988bdf2b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-15 16:27:44 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!skynet.be!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: [announcement] SYSAPI and SYSSVC for Windows Date: 15 Dec 2003 19:25:33 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <%VlDb.5454$Pg1.1321@newsread1.news.pas.earthlink.net> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1071534347 67360 80.67.180.195 (16 Dec 2003 00:25:47 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 16 Dec 2003 00:25:47 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: "Ekkehard Morgenstern" Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3474 Date: 2003-12-15T19:25:33-05:00 "Ekkehard Morgenstern" writes: > "Jeffrey Carter" wrote: > > > I'd like to announce the new version of my SYSAPI / SYSSVC packages > > > for Windows. > > > > What are they? What do they do? > > SYSAPI is a package that interfaces directly to the Microsoft Windows API. More precisely, to a _very_ small subset, dealing with synchronous and asynchronous file IO. > I will also add windowing and graphics support (especially for DirectX > Graphics, formerly known as DirectDraw and Direct 3D), and also audio and > video support. Before you do that, you should look at the other Ada Windows bindings out there; see www.adapower.com. Rather than start another one, consider adding to one of those; that will be much more useful. > For now, it contains only file services, namely 64-bit synchronous and > asynchronous services. I've seen that the GNAT libraries do not provide > those, and hence I had to write my own. I need 64-bit file I/O for a > database project of my own (to allow for files bigger than 4 GB). ok. Even better would be to add this to the GNAT Ada.Text_IO runtime! If you get it working, I bet ACT would be happy to include it in GNAT. As for style, it is better to provide at least some comments in the spec saying what the functions do. Since you say these are not thin bindings, I have no idea what the various functions are for, beyond the English meaning of their names. You have constants CFALSE and CTRUE in the spec; that doesn't sound like a thick Ada binding, it sounds like a thin one. Almost every function returns a CBOOL, or has a CBOOL out parameter; what do they mean? A thick Ada binding should raise exceptions for errors (or one exception, with an error message string). -- -- Stephe