comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ann: Ada-Win32 bindings
Date: Sat, 4 Aug 2018 09:10:04 +0200
Date: 2018-08-04T09:10:04+02:00	[thread overview]
Message-ID: <pk3jge$1jq8$1@gioia.aioe.org> (raw)
In-Reply-To: 27b53953-36f2-4efe-b877-2e316b176d80@googlegroups.com

On 2018-08-04 02:20, alby.gamper@gmail.com wrote:

> I am pleased to announce the initial release of ADA bindings for the Win32 API

Since Win32Ada is no more public that is a welcome substitute.

Alas, to late for me. I already migrated from Win32Ada to hand-written 
small portions of Win32 API for the projects that used Win32Ada.

> Note: Their is still a bit of work to do in these bindings, specifically
> 1) Callbacks / function profiles need to be addressed (currently mapped to System.Address)
> 2) Handle inline functions ??
> 3) Better handling of Pre-processor macros ??

Yes, some are missing, e.g. MAKELANGID.

4. A- and W-forms should not be exposed, IMO. E.g. not 
CreateFileMappingA and CreateFileMapping but two overloaded 
CreateFileMapping.

5. The stuff like LPCSTR should be handled more intelligently. I know it 
is difficult, but input nul-terminated strings should also allow 
char_array (or wide equivalent) argument instead of a raw pointer to char.

6. NTSTATUS constants

7. Some Ada convenience calls, e.g.

Conversions FILTETIME <-> Ada.Calendar.Time

    procedure Raise_From_LastError
              (  ID     : Exception_ID;
                 Prefix : String     := "";
                 Error  : Error_Code := GetLastError
              );

Conversions NTSTATUS <-> ERROR_CODE etc.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2018-08-04  7:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-04  0:20 Ann: Ada-Win32 bindings alby.gamper
2018-08-04  7:10 ` Dmitry A. Kazakov [this message]
2018-08-04  9:58   ` alby.gamper
2018-08-04 11:27     ` Dmitry A. Kazakov
2018-08-06 21:57 ` Randy Brukardt
2018-08-06 22:11 ` Randy Brukardt
2018-08-07  9:45   ` alby.gamper
2018-08-07 14:12     ` Dan'l Miller
2018-08-07 22:14       ` Randy Brukardt
2018-08-07 22:02     ` Randy Brukardt
2018-08-07 15:38 ` Ann: " Aurele Vitali
2018-08-09 12:00   ` alby.gamper
2018-08-09 13:38     ` Aurele Vitali
2018-08-09 21:46 ` Jere
replies disabled

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