
Playing a MIDI file when doc opens
Okay,
I've now managed to work out how to play a MIDI file using the mciSendString
API calls and the document_open event. This is okay if I'm wanting to play
a MIDI file saved on the hard drive, but how do I reference a MIDI file
embedded within the document ??
The code I've used to play the file is as follows :-
Dim ret As Integer
ret = mciSendString(_
"open c:\windows\media\canyon.mid type sequencer alias canyon", 0&, 0,
0)
ret = mciSendString("play canyon wait", 0&, 0, 0)
ret = mciSendString("close canyon", 0&, 0, 0)
End Sub
So how do I reference an embedded file ???
Matt