Results 1 to 2 of 2

Thread: Open Files

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    1

    Question

    Need Help:

    I have a midi program made in VB, I would like this program to find all midi files in a directory and then play the firts one, when finish, the second one etc..
    email: [email protected]

    Best Regards,
    Alejandro Vazquez


  2. #2
    Guest
    Use the mciSendString API for the playing of a MIDI.

    Code:
    Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
    To play it, use
    Code:
    mciSendString "open C:\MyMidi.mid type sequencer alias background", 0, 0, 0
    mciSendString "play background", 0, 0, 0
    for the findings for the files, use the FindFirstFile and FindNextFile API.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width