• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1041
  • Last Modified:

Creating a beep Using Visual C++ 4.0.

How can I create a beep from the PC speaker using Visual C++ 4.0? Is there a "sound(Freq.)" and "nosound(Freq.)" that I can use?
0
dawn123
Asked:
dawn123
1 Solution
 
os012897Commented:
Hi,

There is the "Beep (freq, duration)" function that u can use

greetings,
        os


0
 
nietodCommented:
Why two questions?  I don't see the difference?  On think that might be significant is that the beep() function will not return until the sound finishes.  That is not a problem for a warning beep, but is a problem if you want to play music.
0
 
dawn123Author Commented:
What is the header file that I have to include in order to use the function Beep()? I am using Visual C++4.0.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now