Article View: borland.public.cppbuilder.multimedia
Article #815Re: Accessing Windows' default media program rather than the TMediaPlayer
From: Anthony Harlan
Date: Sun, 08 Sep 2002 04:05
Date: Sun, 08 Sep 2002 04:05
20 lines
1752 bytes
1752 bytes
mxyzptlk@sluggy.net (Anthony Harlan) wrote in message news:<d0d7835d.0209052148.66af1425@posting.google.com>...
> I am trying to use whatever my user has set as their default media
> device rather than running in the default window that the TMediaPlayer
> provides.
>
> When I try to use WinExec, it gets upset because my AVI files aren't
> .EXE files.
>
> When I try to use iexplore, it doesn't find the default windows
> directory to run iexplore, and thus doesn't route the command.
>
> Have you got any suggestions? I have a fairly firm grasp on
> programming, but am new to C++, and may need some translation, but any
> help will be much appreciated.
My roommate figured it out. The command is ChellExecute, and my code
(for example) is:
ShellExecute(Handle, "Open", ".\\Media\\1.avi", NULL, NULL,
SW_SHOW);
Technical Details
Message-ID:
<d0d7835d.0209072005.146bf88c@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<d0d7835d.0209052148.66af1425@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,80316c6d94433116 X-Google-Attributes: gid10d0fc,public X-Google-ArrivalTime: 2002-09-07 21:05:34 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: mxyzptlk@sluggy.net (Anthony Harlan) Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: Accessing Windows' default media program rather than the TMediaPlayer Date: 7 Sep 2002 21:05:33 -0700 Organization: http://groups.google.com/ Lines: 20 Message-ID: <d0d7835d.0209072005.146bf88c@posting.google.com> References: <d0d7835d.0209052148.66af1425@posting.google.com> NNTP-Posting-Host: 66.178.153.35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1031457933 12183 127.0.0.1 (8 Sep 2002 04:05:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Sep 2002 04:05:33 GMT