Thread: Beep

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    417
    I tried using winbase.h's
    Beep(100, 200);

    like this:

    Code:
    #include<winbase.h>
    #include<windows.h>
    int main()
    {
       Beep(100, 200);
       return(0);
    }
    and that gave 94 errrors, so I tried this:

    Code:
    #include<windows.h>
    #include<winuser.h>
    int main()
    {
    	for (int x = 100; x<500; x++)
    	   Beep(x, 50);
       return(0);
    }
    Which worked fine. I'm working on something I'll post up when I finish
    Last edited by Trauts; 01-09-2003 at 05:47 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linux beep function
    By Calef13 in forum C++ Programming
    Replies: 7
    Last Post: 07-14-2007, 01:39 AM
  2. I need to play a pre recorded vox file using C
    By m.sudhakar in forum C Programming
    Replies: 4
    Last Post: 11-17-2006, 06:59 PM
  3. alert beep sound
    By bazzano in forum C Programming
    Replies: 3
    Last Post: 02-14-2006, 02:24 PM
  4. Beep();
    By SirCrono6 in forum C++ Programming
    Replies: 7
    Last Post: 02-22-2004, 04:47 PM
  5. Something Like beep()
    By Trauts in forum C++ Programming
    Replies: 3
    Last Post: 02-02-2003, 02:51 PM