Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to incorporate sound in 4.5?? 1

Status
Not open for further replies.

theprophet

Programmer
Nov 2, 2000
16
US
Just wondering if anyone knew of a simple way to play a wav file in Borland C++ version 4.5. I've gotten a real run around trying to nail this down to actual coding examples or even detailed explanation. I would really appreciate any help anyone can provide.
 
Here an Example which i used with Windows 3.11 some years ago:


// Header
.
.
#include <mmsystem.h>
.
.
.
.

//Program
.
.
::sndPlaySound(&quot;welc.wav&quot;,SND_SYNC|SND_NODEFAULT);
.
.
.


hnd
hasso55@yahoo.com

 
thanks sounds simple enough =)

do you know if this will also work in Windows 98??
 
Hi,
Have you tried sndPlaySound(....)?
The include is
mmsystem.h


Dick
 
Sorry, in the moment I don't have a 32-Bit-System with a soundcard here. The best way: Try it. I think this could be done very easy.

hnd
hasso55@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top