User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 402,940 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,856 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Jan 14th, 2008
Views: 1,955
Good day, here is one of the commands that will allow you to get sound in your program. It was compiled using DevC++.
cplusplus Syntax | 5 stars
  1. Beep (fequency in cycles, duration in milliseconds); // The capital letter 'B' is mandatory
  2.  
  3. An additional compiler directive is needed:
  4. #include <windows.h>
  5.  
  6. Beep(1000, 2000); will make a sound of 1000 cycles for 2 seconds
Comments (Newest First)
t3ch|\/|4n | Newbie Poster | 6 Days Ago
Sweet!!!! This+keylogger+run on startup is a funny prank!! Use to get your coworkers' pws and drive them crazy!!! im going to upload on my boss's computer
docsharp01 | Newbie Poster | Jul 9th, 2008
Ene Uran | Veteran Poster | Jan 15th, 2008
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 6:01 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC