🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13021

Re: Play wav file from code

#13021
From: Ed Mulroy [TeamB]
Date: Wed, 29 Oct 2003 21:31
31 lines
2460 bytes
I have attached a zip file to a message with the subject "Wav Play" in the
attachments group, borland.public.attachments

It contains source, make file and executable for a program which plays wave
files.  It is just a quicky, written in C++ and using the Win32 API and not
the VCL.  It's just a demo and has quirks - for instance it searches all
your drives for wav files before showing its window and the listbox
horizontal scroll bar doesn't work.  The only readon I posted it is that the
program works both on my XP Pro machine and on my Win95a machine.  If it
does both of those it should also work on your WIn98 machine.

I cannot certify that it is the same for BCB5 since I am running 6 and do
not have 5 mounted, but I remember version 5 rather well and do not think
there is anything in it which would not work with that version.

.  Ed

> Martin C wrote in message
> news:3f9fcf82@newsgroups.borland.com...
>
> I've tried the (PlaySound) function on windows XP/ BCB5 and it is really
> working great, but when I tried to use it under Windows 98/ BCB5 I always
> receive compiler error "call to undefined function PlaySound".
>
> I've included (Mmsystem.h) and still I get this error, do you have any
idea
> why I might be receiving this error, and why it didn't showup on windows
xp
> ?
>
> Looking forward for your reply
Technical Details
Message-ID: <3fa031c0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f9c7595@newsgroups.borland.com> <3f9c8805$1@newsgroups.borland.com> <3f9d1ecb$1@newsgroups.borland.com> <3f9d5ad1$1@newsgroups.borland.com> <3f9fcf82@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1888f9f1253de96f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-29 13:39:43 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9c7595@newsgroups.borland.com> <3f9c8805$1@newsgroups.borland.com> <3f9d1ecb$1@newsgroups.borland.com> <3f9d5ad1$1@newsgroups.borland.com> <3f9fcf82@newsgroups.borland.com>
Subject: Re: Play wav file from code
Date: Wed, 29 Oct 2003 16:31:35 -0500
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3fa031c0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067463104 24.74.175.102 (29 Oct 2003 13:31:44 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail