|
-
May 18th, 1999, 03:39 PM
#1
PlaySound Problem
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|