Re: [Dev-C++] can't make MessageBeep() beep!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Verne H. B. <ve...@sy...> - 2005-03-13 16:16:53
|
I just added your little Beep program and left the system("PAUSE"); in same
and got a nice kerjunk! sound! I don't know what you were expecting with
that little bit of code.
********************
#include <cstdlib>
#include <iostream>
#include "windows.h"
using namespace std;
int main(int argc, char *argv[])
{
MessageBeep(128);
// return 0;
system("PAUSE");
return EXIT_SUCCESS;
}
****************************
Verne
> OK, I feel really stupid right now. I'm making a console game(or
> starting to), and I want the console to beep certain sounds to make a
> sort of old-style song. I've been testing the messageBeep for hours
> now, and I can't get it to work. Here's a sample of what I've written:
>
> #include "windows.h"
>
> int main()
> {
> MessageBeep(128);
> return 0;
> }
>
> When I compile the program, it runs fine, but all it does is make a
> "click" sound, not a beep. What's going on?
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|