I've lost my messagebeep!

P

Paolo

Hi,

I'm doing a simple API function call and I've suddenly one of my beeps!

The code is standard as follows, but when I call the function, I get
nothing. Both produce nothing:


Call MessageBeep(MB_ICONQUESTION)
Call MessageBeep(&H20&)


But If I use any other constant or hexadecimal, I get the appropriate
beep. Help!


Thanks in advance,
Paolo


I don't check this e-mail, only [email protected], removing
the NOSPAM.


Public Declare Function MessageBeep _
Lib "user32" (ByVal wType As Long) As Long


Public Const MB_ICONASTERISK As Long = &H40&
Public Const MB_ICONEXCLAMATION As Long = &H30&
Public Const MB_ICONQUESTION As Long = &H20&
Public Const MB_ICONINFORMATION As Long = MB_ICONASTERISK
Public Const MB_ICONHAND As Long = &H10&
 
D

Dirk Goldgar

Paolo said:
Hi,

I'm doing a simple API function call and I've suddenly one of my
beeps!

The code is standard as follows, but when I call the function, I get
nothing. Both produce nothing:


Call MessageBeep(MB_ICONQUESTION)
Call MessageBeep(&H20&)


But If I use any other constant or hexadecimal, I get the appropriate
beep. Help!


Thanks in advance,
Paolo

Public Declare Function MessageBeep _
Lib "user32" (ByVal wType As Long) As Long


Public Const MB_ICONASTERISK As Long = &H40&
Public Const MB_ICONEXCLAMATION As Long = &H30&
Public Const MB_ICONQUESTION As Long = &H20&
Public Const MB_ICONINFORMATION As Long = MB_ICONASTERISK
Public Const MB_ICONHAND As Long = &H10&

It may be that your computer's Sound settings have changed. Use the
appropriate control panel applet (on my Win2K system it's "Sounds and
Multimedia") and see if you have any sound associated with the Question
event.
I don't check this e-mail, only [email protected], removing
the NOSPAM.

Not really relevant, since newsgroup messages are normally answered only
in the newsgroup, not in private e-mail. Doing otherwise defeats the
whole community purpose of these newsgroups.
 
Top