I have added a wave file to my resource file and compile to a .res.
I have used:
FUNCTION = PlaySound("mywave.wav", BYCOPY 0, %SND_MEMORY)
to play the file in the same directory but I want to include it in the file now.
my program was generated by PowerGen and it uses the include file that was generated.
here is what I have so far:
FUNCTION PlayWav(BYVAL hDlg AS LONG) AS LONG
LOCAL hRes AS LONG
LOCAL lpWav AS BYTE PTR
LOCAL hInst AS LONG
FUNCTION = PlaySound("mywave.wav", BYCOPY 0, %SND_MEMORY) 'plays a file
END FUNCTION
With the wave resource being named "WAVE"
and the id "%IDR_WAVE1".
How do I find the resource and then make PlaySound use it?
Kerry
------------------
I have used:
FUNCTION = PlaySound("mywave.wav", BYCOPY 0, %SND_MEMORY)
to play the file in the same directory but I want to include it in the file now.
my program was generated by PowerGen and it uses the include file that was generated.
here is what I have so far:
FUNCTION PlayWav(BYVAL hDlg AS LONG) AS LONG
LOCAL hRes AS LONG
LOCAL lpWav AS BYTE PTR
LOCAL hInst AS LONG
FUNCTION = PlaySound("mywave.wav", BYCOPY 0, %SND_MEMORY) 'plays a file
END FUNCTION
With the wave resource being named "WAVE"
and the id "%IDR_WAVE1".
How do I find the resource and then make PlaySound use it?
Kerry
------------------
Comment