Results 1 to 8 of 8

Thread: *.wav- and *.mp3-associating...?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Question *.wav- and *.mp3-associating...?

    Hi folks!

    -I am currently working on a MP3-player. It works really good, but I want it to start when you choose a MP3-file... Like in Winamp.

    -My problem is that I want to associate the *.wav- and *.mp3-files on my computer with my program, so that the user does not need to open the music from the program every time.


    I hope you guys are able to help me out!

    Thanks!
    Last edited by Mutuz; Jun 11th, 2002 at 05:47 AM.

  2. #2
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    This page explains it all.
    See ya later,

    -=XQ=-

    "Reality is merely an illusion, albeit a very persistent one. "
    - Albert Einstein (1879-1955)
    This is the coolest site ever!!!

  3. #3
    Member
    Join Date
    Jun 2002
    Location
    London
    Posts
    32
    You need to write File association programme in Windows API
    or just you can simply change file associations manually
    open windows explorer
    Tools menu --> folder options --> File types --> change
    select file type and change associated programme to your programme


    Kiran

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    Theres also a command that does it from command line.

    assoc

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70
    Thanks guys! It really helped a lot!

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70
    -I have also made a playlist to the player. But I am only able to add one file at a time... This takes very long time when you have got 500+ files!

    -Does anyone know how to browse/open an entire directory in a playlist, and/or how to browse/add all the files at once?!

  7. #7
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    Here is a way to do it with the Common Control:
    Code:
    Private Sub Form_Load()
        
        Dim strX() As String
        Dim intX As Integer
        
        With CommonDialog1
            .Flags = cdlOFNAllowMultiselect
            .Filter = "All Files (*.*) | *.*"
            .ShowOpen
            strX = Split(.FileName, " ")
            '1st element of strX is the path and the others are the filenames
    
            For intX = (LBound(strX) + 1) To UBound(strX)
                Debug.Print strX(LBound(strX)) & strX(intX) 'prints file paths to debug window
            Next
        End With
    
    End Sub
    See ya later,

    -=XQ=-

    "Reality is merely an illusion, albeit a very persistent one. "
    - Albert Einstein (1879-1955)
    This is the coolest site ever!!!

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Cool

    Thanks, mate!

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