I want to play a sound called chomp.wav that is stored as a resource. I found:
[tt]
PlaySound("SoundName", hInst, SND_RESOURCE | SND_ASYNC);
[/tt]
on MSDN but when I try and compile this it says hInst is undeclared. What do I have to do to hInst?.
Also, I haven't used resources before. All I've done so far is made chomp.wav be under "resource files" in the file veiw but I don't know if this is the right thing to do at all. Surely I have to call it "SoundName" or something?
Any help would be much appreciated, -Ed ;-)
[tt]
PlaySound("SoundName", hInst, SND_RESOURCE | SND_ASYNC);
[/tt]
on MSDN but when I try and compile this it says hInst is undeclared. What do I have to do to hInst?.
Also, I haven't used resources before. All I've done so far is made chomp.wav be under "resource files" in the file veiw but I don't know if this is the right thing to do at all. Surely I have to call it "SoundName" or something?
Any help would be much appreciated, -Ed ;-)
________________________________
Destiny is not a matter of chance; it is a matter of choice.
Destiny is not a matter of chance; it is a matter of choice.