Forum: PC-Programmierung MessageBeep(0); API does not work WIN Vista


von Holger (Gast)


Lesenswert?

Hi Experts,

I am using Visual Studio VC6 on WIN Vista.
Is there a replacement API call for the old MessageBeep(0);?

Cause it is not working in Vista.

Please advise.

I want to notify the user when a certain error occurs
by playing the standard windows beep.
I used MessageBeep(0);  function for that.
But there comes nothing out of my speakers !

What I'm doing wrong ?
And how do I get a beep out of it ?

In other Platforms like WIN-XP
The API Win32.Beep or MessageBeep(0);
Is ok  to hear a beeping sound !
Thanks,
Holger

von Εrnst B. (ernst)


Lesenswert?

Have a look here:

Beitrag "MessageBeep(0); does not work under service program on Vista"

So: Make sure the user profile actually has a sound configured for the 
normal beep.

Also:
http://msdn.microsoft.com/en-us/library/ms680356(VS.85).aspx

Try:
MessageBeep(-1);
MessageBeep(MB_ICONASTERISK);
MessageBeep(MB_ICONEXCLAMATION);


…

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.