comp.lang.ada
 help / color / mirror / Atom feed
From: tolkamp <f.tolkamp@gmail.com>
Subject: Re: How to interface in ADA with Microsoft joystick?
Date: Tue, 5 Oct 2010 03:19:27 -0700 (PDT)
Date: 2010-10-05T03:19:27-07:00	[thread overview]
Message-ID: <f5f1d30a-a7d5-4acb-8c3c-1a26d8e2a0bb@28g2000yqm.googlegroups.com> (raw)
In-Reply-To: zxdah2dl84in$.1f64fdn0htb1m$.dlg@40tude.net

On 5 okt, 09:30, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> On Mon, 4 Oct 2010 12:46:12 -0700 (PDT), tolkamp wrote:
> > On 4 okt, 21:30, tolkamp <f.tolk...@gmail.com> wrote:
> >> From the sidehttp://libre.adacore.com/libre/download2Ihave
> >> downloaded the file win32ada-gpl-2010.exe.
> >> Is this the correct file?
>
> I guess so, provided, you are using GNAT GPL 2010.
>
> > In addition: the win32 spec and body file is also found in
> > GNAT/bin/source/src/gnat.
>
> Should be .../include/win32ada/
>
> But that depends on the win32ada.gpr file. If you want to know for sure
> where are the specifications, you look into this file. The file must be
> located under .../lib/gnat, because that is the default directory where
> GNAT searches for gpr-files (others are form the ADA_PROJECT_PATH
> environment variable). Now in that file you will see the path to sources,
> e.g.
>
> project Win32Ada is
>    for Languages use ("ada");
>    for Source_Dirs use ("../../include/win32ada");
>    for Library_Dir use "../../lib/win32ada";
>    for Library_Name use "win32ada";
>    for Externally_Built use "true";
> end Win32Ada;
>
> So the source directory is
>
> .../lib/gnat/../../include/win32ada = ../include/win32ada
>
> --
> Regards,
> Dmitry A. Kazakovhttp://www.dmitry-kazakov.de


Finally I had success to include the package Win32 in my project.
Compilation of the project gives the following error message for
package win32-winnt.ads:
“representation item appears too late”

pragma Convention(C, anonymous1_t);        -- winnt.h:186
pragma Convention(C, LUID_AND_ATTRIBUTES); -- winnt.h:2000
pragma Convention(C, SID_IDENTIFIER_AUTHORITY);

By the way, I use GNAT GPL 2009 (version 4.3.1).





  reply	other threads:[~2010-10-05 10:19 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-03 15:07 How to interface in ADA with Microsoft joystick? tolkamp
2010-10-03 15:21 ` Dmitry A. Kazakov
2010-10-04 15:16   ` tolkamp
2010-10-04 16:18     ` Dmitry A. Kazakov
2010-10-04 17:54       ` tolkamp
2010-10-04 18:58         ` Dmitry A. Kazakov
2010-10-04 19:30           ` tolkamp
2010-10-04 19:46             ` tolkamp
2010-10-05  7:30               ` Dmitry A. Kazakov
2010-10-05 10:19                 ` tolkamp [this message]
2010-10-05 10:55                   ` AdaMagica
2010-10-05 12:21                   ` Dmitry A. Kazakov
2010-10-05 15:32                     ` tolkamp
2010-10-05 16:11                       ` Andre
2010-10-05 17:03                       ` Dmitry A. Kazakov
2010-10-08  8:48                         ` tolkamp
2010-10-08 20:00                           ` Dmitry A. Kazakov
2010-10-10 11:05                             ` tolkamp
2010-10-10 11:11                               ` Dmitry A. Kazakov
2010-10-11 20:24                                 ` tolkamp
2010-10-12  7:25                                   ` Dmitry A. Kazakov
2010-10-12  9:52                                     ` tolkamp
2010-10-12 11:25                                       ` tolkamp
2010-10-12 12:07                                       ` Dmitry A. Kazakov
2010-10-12 17:41                                         ` tolkamp
2010-10-12 20:10                                           ` Dmitry A. Kazakov
replies disabled

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