Click to See Complete Forum and Search --> : How to invoke avi player


Prasanna Hebbar
March 29th, 1999, 01:37 AM
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

Srinivas Rao
March 30th, 1999, 12:37 AM
Use system() function with parameter "mpaly32 pathof avi" in handler to play avi

in a different address sapce.

Prasanna Hebbar
March 30th, 1999, 02:18 AM
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.

Srinivas Rao
March 30th, 1999, 11:38 PM
use "mplay32 avifilename" ,not "mplay avifilename" as a parameter for the system()

call.