Play a simple wav sound

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<pre lang=x-cpp>PlaySound("C:WindowsMediaWindows XP Ding.wav", 0, SND_ASYNC);[/code]
gives me the next errors:

<pre>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[/code]
<br/>

View the full article
 
Back
Top