PlaySound() no longer plays any .wav files - page 2

 
Solved - how, I do not know.

After Win-Update and reboot all wav-files were gone, when I copied them back it worked.
 
Carl Schreiber # :
Solved - how, I do not know.

After Win-Update and reboot all wav-files were gone, when I copied them back it worked.

Wow, congratulations!

 
if you really need to play a sound you can import this first
#import "user32.dll"
   int MessageBeep(uint uType);
#import

then you can use it like this
MessageBeep(0xFFFFFFFF);

there is some sounds you can use here (this table is from chatgpt as i don't no much of these sounds)

-------------------------------------------------------------------------------------------------------------------------------

Constant Name Value Description Typical Sound Type
MB_OK 0x00000000      Default OK sound    Light system beep
MB_ICONHAND 0x00000010      Critical stop / error   Buzz or error tone
MB_ICONQUESTION 0x00000020      Question   "Boop" tone (inquisitive)
MB_ICONEXCLAMATION 0x00000030      Warning / Exclamation     Ding
MB_ICONASTERISK 0x00000040      Information / Asterisk   Chime
Default beep 0xFFFFFFFF      Simple system beep (default)   Very short, basic beep

-------------------------------------------------------------------------------------------------------------------------------