November 24th, 2003, 03:32 PM
PlaySound plays the wrong sound
I set up the following registry values:
and use PlaySound("Connect", NULL, SND_ALIAS | SND_APPLICATION | SND_NODEFAULT | SND_ASYNC);
to play the sound when my app connects to the FTP server. If I define a sound using the Control Panel Sound applet, the correct sound is played, but if I don't define a sound for this event, then the WS_FTP Successful Connection sound is played.
I also have an event defined as "Error". The same thing happens, if I have a sound defined, it is played. If no sound is defined, then the WS_FTP error sound is played.
Why is it choosing the WS_FTP sounds?
Thanks in advance,
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.