Solved

MIDIOUTCAPS

Posted on 1998-01-31
4
192 Views
Last Modified: 2008-02-01
I ma having problem with the midiOutGetDevCaps, using the MIDIOUTCAPS type.
I have the type difinition for c or c++ (?), from the developer networs cd that comes with VB5 but that cant help me.
I need to setup a type for VB.
thanx.
CATT
0
Comment
Question by:CATT
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
dirtdart earned 30 total points
ID: 1454630
Type MIDIOUTCAPS
        wMid As Integer
        wPid As Integer
        vDriverVersion As Long
        szPname As String * MAXPNAMELEN
        wTechnology As Integer
        wVoices As Integer
        wNotes As Integer
        wChannelMask As Integer
        dwSupport As Long
End Type

0
 

Author Comment

by:CATT
ID: 1454631
Thanks, but; I get an error, constant expression requierd, at the * (?) MAXPNAMELEN. How, what am I to do about that.?
0
 
LVL 5

Expert Comment

by:dirtdart
ID: 1454632
Public Const MAXPNAMELEN = 32  


Make sure you put this BEFORE the type declaration.
0
 

Author Comment

by:CATT
ID: 1454633
Adjusted points to 35
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now