DDTdevelop
New member
- Joined
- Aug 17, 2011
- Messages
- 3
- Programming Experience
- 5-10
Hi all. My first post here (asking for help obviously).
I play a midi file using this simple win32 api call:
MidiMsg = "open " & c_midiFile & " type sequencer alias mid1 notify"
ret = mciSendString(MidiMsg, "", 0, Form1.Handle)
MidiMsg = "play mid1"
ret = mciSendString("play mid1", "", 0, Form1.Handle)
Callback message MM_MCINOTIFY has a value of &H3B9 (found it using "spy++")
I have to know when this message (MM_MCINOTIFY) is fired and read his parameters. In an old version of code I've written years ago in VB6 i had to use CallWindowProc and SetWindowLong win32 api, but now in VS2005 i cannot get it to work.
Still I have to try with unmanaged code or are there any other ways to do this in vb .net?
Last but not least, thanks you all for your help!
I play a midi file using this simple win32 api call:
MidiMsg = "open " & c_midiFile & " type sequencer alias mid1 notify"
ret = mciSendString(MidiMsg, "", 0, Form1.Handle)
MidiMsg = "play mid1"
ret = mciSendString("play mid1", "", 0, Form1.Handle)
Callback message MM_MCINOTIFY has a value of &H3B9 (found it using "spy++")
I have to know when this message (MM_MCINOTIFY) is fired and read his parameters. In an old version of code I've written years ago in VB6 i had to use CallWindowProc and SetWindowLong win32 api, but now in VS2005 i cannot get it to work.
Still I have to try with unmanaged code or are there any other ways to do this in vb .net?
Last but not least, thanks you all for your help!