GIAKEN
08-08-2007, 08:27 PM
I am getting an automation error with DirectMusic. Here's the code:
Public Sub LoadMidi(ByRef Song As String)
Set loader = DX.DirectMusicLoaderCreate()
Set perf = DX.DirectMusicPerformanceCreate()
Call perf.Init(Nothing, 0)
perf.SetPort -1, 80
Call perf.SetMasterAutoDownload(True)
perf.SetMasterVolume (75 * 42 - 3000)
Set seg = loader.LoadSegment(App.Path & "\" & Song)
seg.SetStandardMidiFile
End Sub
It is highlighting:
Set seg = loader.LoadSegment(App.Path & "\" & Song)
If anybody could help me solve this, I'd be much appreciated.
Public Sub LoadMidi(ByRef Song As String)
Set loader = DX.DirectMusicLoaderCreate()
Set perf = DX.DirectMusicPerformanceCreate()
Call perf.Init(Nothing, 0)
perf.SetPort -1, 80
Call perf.SetMasterAutoDownload(True)
perf.SetMasterVolume (75 * 42 - 3000)
Set seg = loader.LoadSegment(App.Path & "\" & Song)
seg.SetStandardMidiFile
End Sub
It is highlighting:
Set seg = loader.LoadSegment(App.Path & "\" & Song)
If anybody could help me solve this, I'd be much appreciated.