jjschwartz
Technical User
I'm trying to play a .wav file which is stored as a resource.
Searching over the Internet, there seems to be two ways.
One uses PlaySound(resourcename,0,SND_RESOURCE or SND_NODEFAULT), which seems real easy.
The other uses SndPlaySound and involves finding, locking and freeing the resource, using pointers and handles, etc. For a Delphi newbie, that seems pretty complicated.
Is there a reason to prefer one method over the other? I'm kind of scared to start playing with handles and pointers while my feet are still getting wet.
TIA,
Jeffrey Schwartz
Searching over the Internet, there seems to be two ways.
One uses PlaySound(resourcename,0,SND_RESOURCE or SND_NODEFAULT), which seems real easy.
The other uses SndPlaySound and involves finding, locking and freeing the resource, using pointers and handles, etc. For a Delphi newbie, that seems pretty complicated.
Is there a reason to prefer one method over the other? I'm kind of scared to start playing with handles and pointers while my feet are still getting wet.
TIA,
Jeffrey Schwartz