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

Creating a beep Using Visual C++ 4.0.

Posted on 1997-12-15
3
1,018 Views
Last Modified: 2008-02-01
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
Comment
Question by:dawn123
3 Comments
 
LVL 3

Accepted Solution

by:
os012897 earned 50 total points
ID: 1176316
Hi,

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

greetings,
        os


0
 
LVL 22

Expert Comment

by:nietod
ID: 1176317
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
 

Author Comment

by:dawn123
ID: 1176318
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

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