comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Having a problem building with win32ada
Date: Wed, 10 Mar 2010 02:32:30 +0000 (UTC)
Date: 2010-03-10T02:32:30+00:00	[thread overview]
Message-ID: <hn70bu$k0g$1@speranza.aioe.org> (raw)
In-Reply-To: vafdp5lur3vgd7i8eh0r7575dfqv319pmd@4ax.com

> One thing I noticed though is that in mmsystem.h (in the
> i686-pc-mingw32 folder) the declaration of MIDIINCAPS (well,
> MIDIINCAPSA as it's non-Unicode) is:
>
>    typedef struct tagMIDIINCAPSA {
>        WORD wMid;
>        WORD wPid;
>        MMVERSION vDriverVersion;
>        CHAR szPname[MAXPNAMELEN];
>        DWORD dwSupport;
>    } MIDIINCAPSA,*PMIDIINCAPSA,*LPMIDIINCAPSA;
>
> However in win32-mmsystem.ads, the corresponding definition is:
>
>    type MIDIINCAPSA is                          --  mmsystem.h:835
>       record
>          wMid : Win32.WORD;                     --  mmsystem.h:836
>          wPid : Win32.WORD;                     --  mmsystem.h:837
>          vDriverVersion : MMVERSION;            --  mmsystem.h:838
>          szPname : Win32.CHAR_Array (0 .. 31);  --  mmsystem.h:839
>       end record;

> I've done some more searching, and it looks to me like basically the
> Win32Ada binding that AdaCore are allowing people to download are a
> minimum of 11 years old. Apparently the last intermetrics version
> (3.0) was released in 1999. The win32-mmsystem.ads has an Intermetrics
> copyright date of 1995.

Looking at an mmsystem.h dated 8/21/96 I see

typedef struct tagMIDIINCAPSA {
    WORD        wMid;                   /* manufacturer ID */
    WORD        wPid;                   /* product ID */
    MMVERSION   vDriverVersion;         /* version of the driver */
    CHAR        szPname[MAXPNAMELEN];   /* product name (NULL terminated string) */
#if (WINVER >= 0x0400)
    DWORD   dwSupport;             /* functionality supported by driver */
#endif
   } MIDIINCAPSA,*PMIDIINCAPSA,*LPMIDIINCAPSA;

Do you need to access dwSupport?  If not, do you need to allocate space for
a record of this type, or do you just use pointers to a record allocated
by mmsystem?



  reply	other threads:[~2010-03-10  2:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05 11:41 Having a problem building with win32ada John McCabe
2010-03-05 13:12 ` Dmitry A. Kazakov
2010-03-05 14:03   ` John McCabe
2010-03-05 14:27     ` John McCabe
2010-03-05 15:41       ` J-P. Rosen
2010-03-05 16:13         ` John McCabe
2010-03-05 20:24       ` Simon Wright
2010-03-08 11:30         ` John McCabe
2010-03-08 11:52           ` Dmitry A. Kazakov
2010-03-08 12:28             ` John McCabe
2010-03-05 14:35     ` John McCabe
2010-03-05 15:13 ` Gautier write-only
2010-03-09 21:00 ` John McCabe
2010-03-09 21:37   ` John McCabe
2010-03-10  2:32     ` tmoran [this message]
2010-03-10  8:05   ` John McCabe
replies disabled

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