Question

  • Creator
    Topic
  • #2226289

    Run an avi file from VB6

    Locked

    by esupport ·

    How do I run an avi file from withing VB6. Using execute and wait I can run an exe file.

All Answers

  • Author
    Replies
    • #2635741

      Clarifications

      by esupport ·

      In reply to Run an avi file from VB6

      Clarifications

    • #2635691

      s long as the file association

      by tony hopkinson ·

      In reply to Run an avi file from VB6

      is set up, exactly the same way.
      Just ‘execute’ the avi file and windows will do the rest.

      • #2618999

        Yes tried that thanks

        by esupport ·

        In reply to s long as the file association

        I Have a tiny prog just to test with path to an exe file and an avi file. I use shell and wait. The code is exactly the same but the avi gives error Invalid Procedure call or argument. Code as follows: Works for the exe file not the avi file.
        Private Sub ShellAndWait()
        Dim ProcessId As Long
        Dim ProcessHandle As Long
        Const Access As Long = &H100000
        ProcessId = Shell(gstrProgram, vbNormalFocus)
        Do
        ProcessHandle = OpenProcess(Access, False, ProcessId)
        If ProcessHandle <> 0 Then
        CloseHandle ProcessHandle
        End If
        DoEvents
        Loop Until ProcessHandle = 0
        End Sub

    • #2627022

      Worked a treat, thanks for all your help

      by esupport ·

      In reply to Run an avi file from VB6

      Worked a treat, thanks for all your help

Viewing 2 reply threads