#include //for this to work you must add winmm.lib to your project properties //Add it in the Linker | Input | Additional Dependencies //Your Sound.wav file must exist void main() { PlaySound("Sound.wav",NULL,SND_FILENAME | SND_SYNC); }