Click here to Skip to main content
16,022,205 members

Comments by MG2011 (Top 27 by date)

MG2011 1-Feb-12 8:16am View    
Just like that it works:
system("start explorer D:\\Song.WAV");
MG2011 1-Feb-12 7:12am View    
Alright, and how do I do that?:$
I'm sorry for asking so many questions, I'm a beginner:$
MG2011 1-Feb-12 6:51am View    
it gives me this error all the time
[Linker error] undefined reference to `PlaySoundA@12'
What 's my mistake?Now I've changed my code to this:
char soundfile[] = "C:\\Users\\MG2011\\Desktop\\Song.WAV";
PlaySound(soundfile,NULL,SND_FILENAME|SND_ASYNC);
MG2011 1-Feb-12 6:27am View    
Yes I want it to play throughout the programm! Does the file need to be smaller that 1 MB like I've read?Is this right or at least close to right?:$
PlaySound("C:\\Users\\MG2011\\Desktop\\Song.WAV", NULL, SND_LOOP);
MG2011 1-Feb-12 6:19am View    
Could PlaySound() function be useful?