'birdtwitter.wav'
- Posted by George Henry <ghenryca at HOTMAIL.COM> Nov 25, 2000
- 367 views
Bernie, I don't want to change the system sounds. Rather, I want to use the current system sound that is most appropriate to the situation. How do I find out what wav file Windows is currently using for "program error", so I can play that sound, instead of some arbitrarily chosen sound? It's the same sound that message_box() -- drilling a little deeper, MessageBoxA() in user32.dll -- plays (whether I want it to or not, which generally I don't 8^( ). On my computer and instance of Windows 98, since I'm using the Falling Leaves desktop theme, that sound happens to be a bird twitter. But I don't want to try to play "birdtwitter.wav" (not the actual name, I'm not bothering to look it up just now) on EVERYONE's computer, when my program experiences an error, esp. considering that they may not even HAVE the Falling Leaves theme on their machine! See my problem? George >From: Bernie <xotron at PCOM.NET> >... your program should use it's own wave files and not be concerned about what sounds are associated with what instance. Remember that a user maybe running a word processor or some other program at the same time as your application is running. Changing the system sounds changes the sounds for all runing programs and may mess up the other programs that are running. There are files in the archive for playing wave files. _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com