hi everyone, i have a question with bassmidi,why im using BASS_SetConfigPtr it gives the error shows Conversion from string "" to type 'Long' is not valid.
but in example the 2 argurments should be char *filename, why it says it's long???
please Help me
Thanks
Imports Un4seen.Bass
Imports Un4seen.Bass.BASSConfig
Imports Un4seen.Bass.AddOn.Midi.BassMidi
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Bass.BASS_PluginLoad("bassmidi.dll")
End Sub
Private Sub PLAY_Click(sender As Object, e As EventArgs) Handles PLAY.Click
OpenFileDialog1.ShowDialog()
Bass.BASS_SetConfigPtr(BASS_CONFIG_MIDI_DEFFONT, "C:/test.sf2")
Dim streamy As Integer
streamy = Bass.BASS_StreamCreateFile(OpenFileDialog1.FileName, 0L, 0L, BASSFlag.BASS_DEFAULT)
Bass.BASS_ChannelPlay(streamy, True)
Me.Text = OpenFileDialog1.FileName
End Sub
Private Sub OpenFileDialog2_FileOk(sender As Object, e As System.ComponentModel.CancelEventArgs)
End Sub