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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,a632877f80f5be5d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe13.ams2.POSTED!7564ea0f!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: Having a problem building with win32ada Message-ID: References: <0oq1p5dd88dhfkd1j868en04qa0hmcmj9v@4ax.com> <75cdp5pg8qba95j4bdopp4e8gq5jd67u1i@4ax.com> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.176.146.77 X-Complaints-To: abuse@demon.net X-Trace: newsfe13.ams2 1268208305 80.176.146.77 (Wed, 10 Mar 2010 08:05:05 UTC) NNTP-Posting-Date: Wed, 10 Mar 2010 08:05:05 UTC Date: Wed, 10 Mar 2010 08:05:03 +0000 Xref: g2news1.google.com comp.lang.ada:9507 Date: 2010-03-10T08:05:03+00:00 List-Id: John McCabe 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