MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> VB6: two programs using ONE midi-ox
(Message started by: ersteller on Apr 21st, 2023, 2:47am)

Title: VB6: two programs using ONE midi-ox
Post by ersteller on Apr 21st, 2023, 2:47am
Hello and thanks for MIDI-OX: really a useful program!

I use often VB6 (the old one, not .net) to drive MIDI-OX.

When one instance of MIDI-OX is already running (alone, without programs) and I start a VB6 program with these lines:

Dim WithEvents mox As MIDIOXLib.MoxScript
Set mox = New MIDIOXLib.MoxScript

the VB6 program *uses* the already running instance of MIDI-OX.

What must I write in the SECOND VB6 program, so that this second program too uses the *same* instance of MIDI-OX? Is it possible?

Thanks
Francesco

Title: Re: VB6: two programs using ONE midi-ox
Post by ersteller on Apr 21st, 2023, 3:16am
Sorry, I must read the doc...  ::)

"instances are not reused: once a script has been attached to an instance and then closed, another script will not attach to this instance."

Hi and thanks for this program!
Francesco



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