Use the resource editor to add the music file, and release the file when the program is running
Menu: Add-in, Add-in Manager, find the resource editor, and load That's it, you can find the resource editor in the
Tools
menu
After adding the file
in the form_load event
Private
Sub
Form_Load()
Dim
tmp()
As
Byte
tmp
=
LoadResData(
101
,
"custom"
)
Open
App.Path
&
< p>"\test.mp3
"
For
Binary
As
#1
Put
#1,
,
tmp
Close
End
Sub
Then you can use the test.mp3 file to play (you can modify the bold part by yourself)