Is there a possibility to generate some kind of sound or beep from within a MINGW/GRX Win32 program ? Thanks for any pointers.
Waldemar Schultz escribió:
Is there a possibility to generate some kind of sound or beep from within a MINGW/GRX Win32 program ? Thanks for any pointers.
If you only want a beep you can use the Beep function (from the Win32 API):
BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz DWORD dwDuration // sound duration, in milliseconds );
but note it works on NT, W9x ignores the parameter and sounds the default beep.
Hi Mariano Alvarez:
If you only want a beep you can use the Beep function (from the Win32 API):
BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz DWORD dwDuration // sound duration, in milliseconds
);
but note it works on NT, W9x ignores the parameter and sounds the default beep.
That is O:K: for me.
Thank you for spending your time for stupid me. But as I am completely new to WIN programming would you kindly tell me how to implement that ? (i.e. what to #include and what to link to get the API in) Thank you again.
Hi, Waldemar
But as I am completely new to WIN programming would you kindly tell me how to implement that ? (i.e. what to #include and what to link to get the API in)
You must to include "windows.h" only.
I recomend you to download the API docs. Search the mingw site for.
Greetings, M.Alvarez
Where to get Win32 API documentation? Would this be just a description of the prototypes in windows.h, or even more ? Would anyone post the URL, if available, please.
Thank you
Here's the main site: http://msdn.microsoft.com/
I've found that the easiest way to find what I'm looking for is to go to the site and enter the name of a specific Win32 function in the search field. Once you go to that function's documentation, the tree control on the left will be in the neighborhood of "related" functions.
The main pane will have the prototype as well as a description of what the function does, how each parameter is used, links to documentation of any structs used by the function, etc.
One thing to watch out for is that when you enter a function name, the search results will typically (actually, always in my experience) list the WinCE version first, then the Win32 version.
Good luck!
Ben
On Fri, 13 Jul 2001, Waldemar Schultz wrote:
Where to get Win32 API documentation? Would this be just a description of the prototypes in windows.h, or even more ? Would anyone post the URL, if available, please.
Thank you
-- Gruss Waldemar Schultz. schultz@ma.tum.de Technische Universit�t M�nchen, Zentrum Mathematik M1, D 80290 M�nchen Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228
Hi Waldemar:
Where to get Win32 API documentation? Would this be just a description of the prototypes in windows.h, or even more ? Would anyone post the URL, if available, please.
I think this is a bit off-topic here, but go to http://mingw.sourceforge.net/docs.shtml