Playing Media File with C

Go4Expert Member
6Jul2008,12:36   #1
dssr's Avatar
Hii can anyone tell me how to play a media file with C, i mean suppose i have a mp3 format file stored in my character is there any way to play that media file by C???
Go4Expert Member
6Jul2008,12:43   #2
dssr's Avatar
or if you can tell me how to play the file in DOS that may help too
Go4Expert Member
6Jul2008,13:04   #3
dssr's Avatar
from internet i got this code but it's not compiling in my compiler

Code:
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
PlaySound("windowsding.wav", NULL, SND_FILENAME|SND_LOOP);
  return 0;
}
PlaySound function does not exist in my compiler