CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    How to invoke avi player



    I want to play an avi file within my program. Please can anybody suggest a method to invoke the avi player?


    When the user presses the button "Play Avi", I want to launch the avi player on a separate address space.


    Is it possible to get the name of the server, so that I can create another process, and lauch the avi there?


    thanks in advance,

    Prasanna Hebbar




  2. #2
    Join Date
    Mar 1999
    Posts
    8

    Re: How to invoke avi player



    Use system() function with parameter "mpaly32 pathof avi" in handler to play avi

    in a different address sapce.

  3. #3
    Join Date
    Apr 1999
    Posts
    4

    Re: How to invoke avi player



    The System with the parameter "mplay AviFileName" did not work.


    But there is one alternative for this.


    Use WinExec command and pass the lpszCmdLine as

    RUNDLL32.EXE amovie.ocx,RunDll AVIFILENAME


    Pass NULL for lpszAppName. This will invoke the active movie control with the avi.

  4. #4
    Join Date
    Mar 1999
    Posts
    8

    Re: How to invoke avi player



    use "mplay32 avifilename" ,not "mplay avifilename" as a parameter for the system()

    call.

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

Featured