Frage

I recently found that in a 32-bit windows application running on Server 2008 R2 64-bit, the notification sound (produced via a C++ call to MessageBeep( MB_ICONEXCLAMATION )) no longer produces a sound. Sounds in general work and the profile has been loaded with default windows sound settings in the Control Panel. Works fine on Win7 64-bit, so I assume its something server specific. Any suggestions for narrowing it down?

War es hilfreich?

Lösung

Usable workaround:

#include <MMSystem.h>
PlaySound( (LPCTSTR) SND_ALIAS_SYSTEMEXCLAMATION, NULL, SND_ALIAS_ID );
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top