Solved

Why does beep not work

Posted on 2006-06-18
3
180 Views
Last Modified: 2010-04-30
When I enter a beep command, nothing happens.  No sound at all.
All the other windows sounds work fine, but when I enter the beep command in my app, it makes no sound.

Can anybody tell me what I'm missing?

Cheers!
ahammar
0
Comment
Question by:ahammar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 16930127
Hi,

From the Windows Control Panel, click the "Sounds and Audio Devices" applet, and then select the [Sounds] tab.

Within the "Program events:" list under the "Windows" category, select "Default Beep" & note the ".wav" file within the "Sounds:" drop-down list, for example, "Windows XP Ding.wav".

If you click the ">" play button, can you hear the sound?  If not, click the [Browse...] button & select any other ".wav" file.

Check that this ".wav" plays correctly, using the ">" button.  If it does, click [OK] to confirm.

If it does not, please come back to discuss further.

Otherwise, return to your code & execute a Beep command again & note any difference.

BFN,

fp.

0
 
LVL 23

Author Comment

by:ahammar
ID: 16930205
Ok, that was the problem.  It works now.  There was no default sound assigned.  I never unassigned it, so XP must be default without it.  Strange.  I guess I better use some type of play command or api or something in case another user has the same problem.

Anyway...Thank you!

Cheers!
ahammar
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 16930240
You're very welcome.

You could, of course, determine if a sound file had been defined (by reading the system registry) &/or the actual file can be found in the specified location, and if either conditions are not met, then look for the first ".wav" file & assign it, or use a different approach as you suggested above.

Good luck.

BFN,

fp.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question