I am making a console app in C++.
I am working on trying to get my solution to play a sound file at the beginning (1 time shot, for only about 2 seconds).
I have searched and found the code command
PlaySound("C:\\playgame.wav", NULL, SND_ASYNC);
I have tried loading this code (and many variations such as PlaySoundA, PlaySoundW, PlaySound(TEXT("C:\\.....), NULL...)
I get an error message of error C2664: 'PlaySoundW' : cannot convert parameter 1 from 'const char ' to 'LPCWSTR'
Any suggestions on how to correct this issue?