Playing midi file with VB4(32bit) 
Author Message
 Playing midi file with VB4(32bit)

Is there a way to play a midi file using VB4(32 bit) ?

Thanks

Jim M



Thu, 22 Oct 1998 03:00:00 GMT  
 Playing midi file with VB4(32bit)

Quote:

>Is there a way to play a midi file using VB4(32 bit) ?
>Thanks
>Jim M

Hi Jim,

Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA"
(ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal
uReturnLength As Long, ByVal hwndCallback As Long) As Long

dim ret as long, retstr as long

comand = "open hello.mid type sequencer alias back"
ret = mciSendString(comand, retstr, 0, 0)
ret = mciSendString("play back notify", retstr, 0, 0)

Hope this help



Thu, 22 Oct 1998 03:00:00 GMT  
 Playing midi file with VB4(32bit)

Quote:


> >Is there a way to play a midi file using VB4(32 bit) ?

> >Thanks

> >Jim M

> Hi Jim,

> Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA"
> (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal
> uReturnLength As Long, ByVal hwndCallback As Long) As Long

> dim ret as long, retstr as long

> comand = "open hello.mid type sequencer alias back"
> ret = mciSendString(comand, retstr, 0, 0)
> ret = mciSendString("play back notify", retstr, 0, 0)                                 ^^^^^^

Hi Paolo,

Did you try to receive this posted 'notify' message (when the midi
is completed) in Visual Basic ?
I tried with the Message Blaster control but no luck :-(
Somehow the MM_MCINOTIFY doesn't come through...

Pieter.



Fri, 23 Oct 1998 03:00:00 GMT  
 Playing midi file with VB4(32bit)


Hi Pieter ,

I'm trying right now with SpyWorks 4.0 (really great)
but without luck :(.



Mon, 26 Oct 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Playing MIDI Files using 32bit API Calls

2. Playing MIDI files in VB4?

3. How can I play Wave or Midi Files in VB4.0 32-Bit

4. how I can play midi file in my VB4 Forms

5. Help: VB4 32bit Midi OCX

6. Play .wav in VB4-32bit without MCI control

7. Playing WAV files and MIDI files

8. Midi to play on load (VB4)

9. MIDI playing and multiple MIDI's.

10. How to Auto play a MIDI file when document opens

11. Playing a MIDI file when doc opens

12. Playing Midi files from QB 4.5

 

 
Powered by phpBB® Forum Software