
04-03-2002, 12:29 PM
|
 |
Centurion
|
|
Join Date: Oct 2001
Location: Tel-Aviv Israel
Posts: 128
|
|
Scratch
|
I figured it out using this...
Public Sub LoadDataIntoFile(DataName As Integer, FileName As String)
Dim myArray() As Byte
Dim myFile As Long
If Dir(FileName) = "" Then
myArray() = LoadResData(101, "CUSTOM")
myFile = FreeFile
Open FileName For Binary Access Write As #myFile
Put #myFile, , myArray
Close #myFile
End If
End Sub
Private Sub Form_Load()
LoadDataIntoFile 101, App.Path & "\music.mp3"
MediaPlayer1.Open App.Path & "\music.mp3"
End Sub
................
I do wonder though ...hmm you think I can use that function to pull out several mp3's out of resource ?
|
|