comp.lang.ada
 help / color / mirror / Atom feed
From: John McCabe <john@nospam.assen.demon.co.uk.nospam>
Subject: Re: Having a problem building with win32ada
Date: Wed, 10 Mar 2010 08:05:03 +0000
Date: 2010-03-10T08:05:03+00:00	[thread overview]
Message-ID: <bfkep5hjk5qnn2rc1m5lf01al87e8raf5s@4ax.com> (raw)
In-Reply-To: 75cdp5pg8qba95j4bdopp4e8gq5jd67u1i@4ax.com

John McCabe <john@nospam.assen.demon.co.uk.nospam> wrote:

>Guys

<..snip..>

>Now call me stupid if you like, <..snip..>

You're stupid - glad it was me who spotted it though :-) Sudden flash
of inspiration at ~6:00am....

>         res := Win32.Mmsystem.midiInGetDevCaps(Device_ID,
>                                                Midi_In_Caps,
>
>Win32.Mmsystem.MIDIINCAPS'size
>                                                   * Win32.BYTE'size);

It would probably help if I wasn't asking for the Midi_In_Caps
structure to be filled in with 64x the amount it should be. I should
be dividing by Win32.BYTE'Size here, not multiplying.

Still doesn't get round the issue with win32-mmsystem,h but, in answer
to Tom (later), I don't need the dwSupport field on the IN side as
it's always zero.

John



      parent reply	other threads:[~2010-03-10  8:05 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
2010-03-10  8:05   ` John McCabe [this message]
replies disabled

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