I managed to use playsound in visual studio and I used a code which I found in an old forum the program only run when I edit project properties =>linker=>input=>external dependencies and add winmm.lib but the only sound I get is an error sound have I made something wrong in the setting or do I have to put the wav file in a specific place or do I have to change the code
I tried changing c:\\ to c:/ but it didn't work
when I tried the code and the console output was that he didn't find the file
I don't know I'm pretty sure this file exists is there a specific place I should put it in
I have more than one file with the same name on my pc may this cause an error?
I wrote the full path
the console output was two empty lines I guess this means he found the file but the sound didn't change it gives an error sound :(
Add this to the else clause. std::wcout << L"Windows error: " << GetLastError ();
Try to move the file to a different folder. I vaguely remember a similar problem here in the forum where the problem was no access to files in the root directory.