i would like my APP to open up a media file and play it....

if i say START|RUN c:\mymedia.wmv it opens it up and plays

but in my app i can't say WinExec(c:\mymedia.wmv....) because nothing
happens....

what gives?

Re: openning up the media player by David

David
Tue Jul 29 09:29:22 CDT 2003

>i would like my APP to open up a media file and play it....
>
>if i say START|RUN c:\mymedia.wmv it opens it up and plays
>
>but in my app i can't say WinExec(c:\mymedia.wmv....) because nothing
>happens....

Try using ShellExecute(Ex) on the media file. If you want to check it
without writing the code, have a look at the ShellExec test
application on www.jddesign.co.uk

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq