|
Handling Errors with MIDI Functions
MIDI audio functions return a nonzero error code. For MIDI-associated errors,
the midiInGetErrorText and midiOutGetErrorText functions retrieve textual descriptions for the error codes. The application
must still look at the error value itself to determine how to proceed, but it
can use the error descriptions in dialog boxes to inform users of the error
conditions.
The only MIDI functions that do not return error codes are the midiInGetNumDevs and midiOutGetNumDevs functions. These functions return a value of zero if no devices are present
in a system or if any errors are encountered by the function.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|