From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bhaskar Bhattacharya To: "gnu-win32@cygnus.com" Subject: Win95 program to play audio file Date: Sat, 11 Jul 1998 10:48:00 -0000 Message-id: <35A7A470.450270BF@ieee.org> X-SW-Source: 1998-07/msg00255.html Hello: I just tried to compile an example program from the Charles Petzold book on programming Windows 95. It contains a function call PlaySound ("hellowin.wav", NULL, SND_FILENAME | SND_ASYNC) ; I coudn't find a header file for this function. I get the error message gcc -c -Wall -Ic:/Cygnus/b19/H-i386-cygwin32/i386-cygwin32/include hellowin.c hellowin.c: In function `WndProc': hellowin.c:65: warning: implicit declaration of function `PlaySound' hellowin.c:65: `SND_FILENAME' undeclared (first use this function) hellowin.c:65: (Each undeclared identifier is reported only once hellowin.c:65: for each function it appears in.) hellowin.c:65: `SND_ASYNC' undeclared (first use this function) MAKE.EXE: *** [hellowin.o] Error 1 Has anybody compiled a program involving playing sound files ? If yes, would someone please share a code fragment with me ? thanks, Bhaskar Bhattacharya PS. The program compiles (and runs) fine if that line is commented out. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".