Is it possible to play a .wav file in MSVC++? If not, I will make do with Beep(freq, dur).
Type: Posts; User: Fifasoccer21234
Is it possible to play a .wav file in MSVC++? If not, I will make do with Beep(freq, dur).
Awww...man sorry. I'm new to this forum as of today.
I would like it to say, output "Hello" in let's just say green text in the MSDOS console. Could someone please show me an example? I need it for my battleship game. ::Wink::Wink::.
How do you do colored text in MSVC 6.0? Could anyone give me a little snippet of code that outputs say like "Hello" in a color? Thanks!
OMG, thank you!!! Now my ingenius battleship plans will be revealed. Is there any way to play a .wav file or is that too complicated. TY SO MUCH!
I'm sorry but I'm but a high school sophomore newb, would you be kind enough to show me a very simple implementation of this code?
Do you mean search every .h file inside of each and every one? I don't see any sound or beep .h's
Also, for the duration and frequency what are the units they are measured in? Could you perhaps give me a test section of code that uses the beep function in msvc 6.0?
What header file does the beep function require?
Hey everyone, what compiler do you guys use? My school is cheap so I use Turbo C++ 3.0. It's made for DOS. :
I checked the windows.h header file and the only code about sounds was:
/****** Sound support ******************************************************/
#ifndef NOSOUND
int WINAPI...
OK, this is my code:
#include<windows.h>
#include<conio.h>
void main ()
{
PlaySound(bomb.wav);
OK, so I include windows.h which I believe I have, and all I need to do is PlaySound(boom.wav) if it is in the same directory?
Yes, it is version 3.0, the DOS based version. I could also take advice for the Borland C++ compiler, I believe 5.0.
Hello, I am a sophomore in highschool. I am making battleship as my final project and I need some help. Would anyone be kind enough to tell me how(if possible) to play a .wav file? If that is not...