#include "mmsystem.h" ... DWORD fdwSound = SND_ASYNC | SND_FILENAME; PlaySound( "C:\\switch1.wav", NULL, fdwSound );