I don't know if this question is easy or hard or whatever so I'll start with 50 pts.
I'm taking an intro VB6 course.
I know how to play a wav file, but I would like to EMBED the wav file in the finished EXE file. For the finished product, I want only ONE file NOT an exe and a wav file.
When I run the following code the wave file in the same folder as the saved project file plays correctly, but....(see problem after code)
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public Sub PlaySnd()
'tmp% = sndPlaySound("D:\My Documents\FUNNIES\dotcom.wav", 1)
tmp% = sndPlaySound(App.Path & "\dotcom.wav", 1)
Private Sub Command1_Click()
When I choose "make project1 exe" and save it to another dir, the wav doesn't play. How do I fix this?