Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Play a simple wav sound

$
0
0
PlaySound("C:\Windows\Media\Windows XP Ding.wav", 0, SND_ASYNC);
gives me the next errors:
warning C4129: 'W' : unrecognized character escape sequence
warning C4129: 'M' : unrecognized character escape sequence
warning C4129: 'W' : unrecognized character escape sequence
error C2664: 'PlaySoundW' : cannot convert parameter 1 from 'const char [34]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>