05-21-2006 05:09 AM
05-22-2006 04:20 AM - edited 05-22-2006 04:20 AM
Damn! Need to make this post shorter as this message board just silently told me that it needs to be shorter than 5000 words and ate up my lengthy repsonse with no way to get it back.
@Vedeja wrote:
I am trying to get MIDI into LV. The dll used is winmm.dll and the function midiinopen (plus others) is described here:The main problem is I don't know how to program the Call Library Function Node properly in order to perform the callplus set it to start receiving callback data, being midi messages. I have tried creating and registering a User Event andpassing the Event ref to the dll's "dwCallback" and then trapping the callback in an Event Structure, but nothing happens.
Message Edited by rolfk on 05-22-2006 11:22 AM
05-22-2006 07:01 AM - edited 05-22-2006 07:01 AM
So I call this "wrapper" which in turn calls the dll plus handles the callback and finally triggers an event back to LV? It sounds straight forward, looking at your dll source code. However, I am unfortunately no C programmer. The function I'm trying to use returns a structure which makes the procedure even more complicated.
What about the example in the following thread, is is not applicable in my case?
http://forums.ni.com/ni/board/message?board.id=170&message.id=99400&query.id=69472#M99400
/Vedeja
Message Edited by Vedeja on 05-22-2006 07:04 AM
Message Edited by Vedeja on 05-22-2006 07:05 AM
11-05-2007 08:33 AM - edited 11-05-2007 08:33 AM