Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HELP Please!!! Pin
sekeya13-Apr-04 8:39
sekeya13-Apr-04 8:39 
GeneralRe: HELP Please!!! Pin
David Crow13-Apr-04 8:45
David Crow13-Apr-04 8:45 
GeneralRe: HELP Please!!! Pin
sekeya13-Apr-04 9:04
sekeya13-Apr-04 9:04 
GeneralRe: HELP Please!!! Pin
David Crow13-Apr-04 9:07
David Crow13-Apr-04 9:07 
GeneralAsynchronous Beep Pin
Michael Menne13-Apr-04 6:57
Michael Menne13-Apr-04 6:57 
GeneralRe: Asynchronous Beep Pin
Dominik Reichl13-Apr-04 7:15
Dominik Reichl13-Apr-04 7:15 
GeneralRe: Asynchronous Beep Pin
Michael Menne13-Apr-04 9:09
Michael Menne13-Apr-04 9:09 
GeneralRe: Asynchronous Beep Pin
Dominik Reichl13-Apr-04 9:54
Dominik Reichl13-Apr-04 9:54 
Read MSDN!!

MessageBeep
The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the [sounds] section of the registry.
<br />
BOOL MessageBeep(<br />
  UINT uType   // sound type<br />
);<br />

Parameters
uType
Specifies the sound type, as identified by an entry in the [sounds] section of the registry. This parameter can be one of the following values: Value Sound
0xFFFFFFFF Standard beep using the computer speaker
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault


Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks
After queuing the sound, the MessageBeep function returns control to the calling function and plays the sound asynchronously.

If it cannot play the specified alert sound, MessageBeep attempts to play the system default sound. If it cannot play the system default sound, the function produces a standard beep sound through the computer speaker.

The user can disable the warning beep by using the Sound Control Panel application.

Windows CE: Passing 0xFFFFFFFF will cause the SystemDefault waveform to be played.

QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

GeneralRe: Asynchronous Beep Pin
Michael Menne13-Apr-04 10:10
Michael Menne13-Apr-04 10:10 
GeneralRe: Asynchronous Beep Pin
David Crow13-Apr-04 8:35
David Crow13-Apr-04 8:35 
GeneralRe: Asynchronous Beep Pin
Michael Menne13-Apr-04 9:12
Michael Menne13-Apr-04 9:12 
GeneralRe: Asynchronous Beep Pin
toxcct13-Apr-04 11:03
toxcct13-Apr-04 11:03 
AnswerRe: When/Why do I use the windows registry with my application? Pin
Navin13-Apr-04 6:51
Navin13-Apr-04 6:51 
GeneralRe: When/Why do I use the windows registry with my application? Pin
BrockVnm13-Apr-04 7:17
BrockVnm13-Apr-04 7:17 
GeneralRe: When/Why do I use the windows registry with my application? Pin
BlackDice13-Apr-04 10:14
BlackDice13-Apr-04 10:14 
GeneralRe: When/Why do I use the windows registry with my application? Pin
Blake Miller14-Apr-04 6:04
Blake Miller14-Apr-04 6:04 
GeneralA Select Folder Dialog Pin
Halloko13-Apr-04 6:41
Halloko13-Apr-04 6:41 
GeneralRe: A Select Folder Dialog Pin
David Crow13-Apr-04 6:53
David Crow13-Apr-04 6:53 
GeneralRe: A Select Folder Dialog Pin
Halloko13-Apr-04 7:38
Halloko13-Apr-04 7:38 
Generalhook donwload file as flashget Pin
Pierpaolo Romanelli13-Apr-04 6:01
Pierpaolo Romanelli13-Apr-04 6:01 
GeneralCTabCtrl and PropertySheet Pin
act_x13-Apr-04 5:44
act_x13-Apr-04 5:44 
GeneralRe: CTabCtrl and PropertySheet Pin
grigsoft13-Apr-04 7:09
grigsoft13-Apr-04 7:09 
GeneralUsing shell's IExtractImage pops annoying 'RefrehThumbnail' messagebox... Pin
ohadp13-Apr-04 4:26
ohadp13-Apr-04 4:26 
QuestionWhen/Why do I use the windows registry with my application? Pin
BrockVnm13-Apr-04 3:51
BrockVnm13-Apr-04 3:51 
AnswerRe: When/Why do I use the windows registry with my application? Pin
wb13-Apr-04 4:19
wb13-Apr-04 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.