MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> sysexes not recieved ???
(Message started by: Joshman on Jan 9th, 2007, 1:33am)

Title: sysexes not recieved ???
Post by Joshman on Jan 9th, 2007, 1:33am
Hi!

My first thread.

I try to get SYSex in my in Visual Basic .NET (2005).

I can start an instance, and it shows sending sysex and recieving, but in my Application the Sub does not recieve the string.


Code:
   Sub mWire_SysExInput(ByVal bstrSysEx As String)

       Me.TextBox1.Text = bstrSysEx

   End Sub


can someone help me please ????

Sorry for my bad english....

c.u.

MIDIox My favorite Tool.

Title: Re: sysexes not recieved ???
Post by Jerry Jorgenrud on Jan 9th, 2007, 9:20am
The last time I did something with VB was in 1999 so this may not be too helpful, but I recall you had to declare "mWire" as "WithEvents" in order to receive input. Could that be the problem? Maybe there is someone who knows VB with a better answer if that doesn't help.

Title: Re: sysexes not recieved ???
Post by Joshman on Jan 10th, 2007, 1:23am
thx for reply  ;D

I try to give more informations...

declaration

Code:
Public WithEvents mWire As New MIDIOXLib.MoxScript


it opens a instance of midiox....

sending sysex....

Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
mWire.FireMidiInput = 1
mWire.SendSysExString("F0 43 20 7E 4C 4D 20 20 38 42 39 38 53 20 F7")
End Sub


in midiox the message is sent and sysex is recieved, checked with the monitors

but in this sub nothing gets in ???

Code:
Sub mWire_SysExInput(ByVal bStrSysEx As String)

       Me.TextBox1.Text = bStrSysEx
   End Sub


what´s wrong this worked fine in visual basic 6...

c.u. Joshi from Hamburg Germany

What i do is to write a Dumps Manager for Yamaha AW4416 DAW...

Title: Re: sysexes not recieved ???
Post by Jerry Jorgenrud on Jan 10th, 2007, 8:04pm
Yes that looks OK as far as I can see. Can you build and run the VB6 sample from the MIDI-OX home page? If that doesn't work this will take some research.



MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.