Solved

Why does beep not work

Posted on 2006-06-18
3
178 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 141
MS Access Search and Replace Using VBA 6 92
using web browser with BING 40 135
Send outlook email from VBS Script 2 58
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

740 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