May 18th, 1999, 03:39 PM
I have a view containing buttons which when pressed play a sound (*.wav) file. This works fine until a dialog or MessageBox is brought up. When the dialog or MessageBox is closed, the sounds no longer play. It's almost as if they are disabled. No error messages are displayed. Is there a call that I can put in OnActivateView() that will re-activate the sound? The call I'm making to play the *.wav file is as follows:
if (m_bPlaySound) PlaySound(MAKEINTRESOURCE(IDR_WAVE_FILE), NULL, SND_RESOURCE | SND_ASYNC | SND_NOSTOP);
If you have any ideas as to what may be going on I'd appreciate it. I'm using VC++ 5.0.
Thanks,
Charles
if (m_bPlaySound) PlaySound(MAKEINTRESOURCE(IDR_WAVE_FILE), NULL, SND_RESOURCE | SND_ASYNC | SND_NOSTOP);
If you have any ideas as to what may be going on I'd appreciate it. I'm using VC++ 5.0.
Thanks,
Charles