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
Solved

Why does beep not work

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…

809 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