How to PlaySound in C++
- by user189748
i try to play a music file in my coding, but failed. i have my music file in the same folder which save .cpp file.
can someone help me?
my code is:
#include <iostream>
#include <windows.h>
int main() {
PlaySound("kenny g.WAV", NULL, SND_ASYNC);
}