msgBox.show("Could not enable digital transfer for the CD device, as a result, the remote will not be able to control the volume of the audio CD player.",
IMessageBox::okButton |
IMessageBox::errorIcon |
IMessageBox::moveable );
}
} /* endif */
try
{
wavPlayer = new IMMWaveAudio();
if (!player)
{
player = wavPlayer;
playerDevice = WAVEID;
} /* endif */
}
catch (IException& exc)
{
IMessageBox msgBox(this);
msgBox.show("Could not open the wave audio device. The wave audio functions are disabled.",
IMessageBox::okButton |
IMessageBox::errorIcon |
IMessageBox::moveable );
wavebtn.disable();
}
try
{
digPlayer = new IMMDigitalVideo();
if (!player)
{
player = digPlayer;
playerDevice = VIDEOID;
} /* endif */
}
catch (IException& exc)
{
IMessageBox msgBox(this);
msgBox.show("Could not open the digital video device. The digital video functions are disabled.",
IMessageBox::okButton |
IMessageBox::errorIcon |
IMessageBox::moveable );
videobtn.disable();
}
try
{
midPlayer = new IMMSequencer();
if (!player)
{
player = midPlayer;
playerDevice = MIDIID;
} /* endif */
}
catch (IException& exc)
{
IMessageBox msgBox(this);
msgBox.show("Could not open the midi device. The midi functions are disabled.",