🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages Started by Anthony Harlan Fri, 06 Sep 2002 05:48
Accessing Windows' default media program rather than the TMediaPlayer
#811
Author: Anthony Harlan
Date: Fri, 06 Sep 2002 05:48
13 lines
1376 bytes
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.
Re: Accessing Windows' default media program rather than the TMediaPlayer
#815
Author: Anthony Harlan
Date: Sun, 08 Sep 2002 04:05
20 lines
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);
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads