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.
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?
Also, I know how to launch the default browser from a lbl.caption, but how do I code a "mailto:" hyperlink similarly?