public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Bhaskar Bhattacharya <bhaskar@ieee.org>
To: "gnu-win32@cygnus.com" <gnu-win32@cygnus.com>
Subject: Win95 program to play audio file
Date: Sat, 11 Jul 1998 10:48:00 -0000	[thread overview]
Message-ID: <35A7A470.450270BF@ieee.org> (raw)

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".

             reply	other threads:[~1998-07-11 10:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-11 10:48 Bhaskar Bhattacharya [this message]
1998-07-13  1:02 Robin Crampton
1998-07-13 20:48 ` Bhaskar Bhattacharya
     [not found] <199807151621.NAA16633@swan2.uspnet.usp.br>
1998-07-15 20:50 ` Bhaskar Bhattacharya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=35A7A470.450270BF@ieee.org \
    --to=bhaskar@ieee.org \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).