Click to See Complete Forum and Search --> : Calling sytem beep in VC++ in MFC


October 12th, 1999, 11:29 PM
Hi.
I have a problem. How do I call system beep or some other such alert from c++ I know that we can use the escape sequence \a to do so. But how to use it. Any suggestion?

Grant Shirreffs
October 13th, 1999, 12:19 AM
MessageBeep(UINT) is part of the standard Win32 API. Its parameter is a messagebox icon code like MB_ICONSTOP, MB_ICONINFORMATION etc.

dave clarke
October 13th, 1999, 03:50 AM
Beep is a flexible SDK function:

BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz
DWORD dwDuration // sound duration, in milliseconds
);