Link to home
Start Free TrialLog in
Avatar of nadiamehrez
nadiamehrez

asked on

play a .mov from my application

does it exits un API which can play a
a file of type movie from a application
in C++
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nadiamehrez
nadiamehrez

ASKER

::ShellExecute(hWnd, NULL, _T("file.mov"), NULL, NULL, SW_SHOWNORMAL);

I want more precision please about the first proposition, Does the third parameter take the name of application
which must be launch or only the name of
the file, for example in my case, can I
launch internet explorer if i want to open an URL site from my application.
is it corect or not this instruction??
ShellExecute(hwnd, NULL, "c:\\ProgramFiles\\iexplore http:\\microsoft.com\", NULL, NULL, SW_SHOWNORMAL)
 
If IE is the default Web browser, you can simply use

ShellExecute(hwnd, NULL, "http:\\microsoft.com", NULL, NULL, SW_SHOWNORMAL);

If not,

ShellExecute(hwnd, NULL, ""c:\\ProgramFiles\\iexplore", "http:\\microsoft.com", NULL, SW_SHOWNORMAL);

Check out the documentation.
Ignore my previous comment. It should be


If IE is the default Web browser, you can simply use

ShellExecute(hwnd, NULL, "http://microsoft.com", NULL, NULL, SW_SHOWNORMAL);

If not,

ShellExecute(hwnd, NULL, "c:\\ProgramFiles\\iexplore", "http://microsoft.com", NULL, SW_SHOWNORMAL);

Check out the documentation.