?
Solved

Using AVI files with NT 4

Posted on 1999-01-22
3
Medium Priority
?
163 Views
Last Modified: 2010-04-06
I am using Delphi 1.   The following procedure works great with Windows 95/98.   You simply pass the name of an AVI file, and the procedure will call MPLAYER to view/run the AVI file.  However, when this procedure is run on Win NT 4, nothing happens.  No error message, and no animation.  I suspect that MPLAYER is not a standard component of Win NT, as it is with Win 95/98.  If this is true, what then is the default multimedia player for WinNT 4?  And how would I modify the procedure so that it would be functional under both Win95/98 and NT 4?

procedure PlayTheAVI(AVIFile:string);
var
 PC: array[0..255] of char;
begin
 WinExec(StrPCopy(PC, 'MPlayer.exe /play /close '+ AVIFile), sw_Show);
end;

Thanks.
0
Comment
Question by:Monroe406
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 160 total points
ID: 1362914
If there is no such a player you can't do anything about it... If there is a player like that in WinNT then it would be displayed...

you could try this also...

ShellExecute(0, 'MPlayer.exe /play /close '+ AVIFile, nil, nil, SW_NORMAL);

-Viktor
--Ivanov
0
 

Author Comment

by:Monroe406
ID: 1362915
Surely Windows NT 4 must ship with a default component to handle AVI files?  No?
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1362916
I'm not a WinNT person, but it probably should have something with it, or maybe not...

WinNT is created for people who need to work with the Network, and Win95/98 and the such are created for entertainment, so I'm not sure... I've never used WinNT, but there might be a player on the CD, so if someone wants to play a CD, he just installs the program and plays it.. YOu should ask a person who has winNT... The code should work if there is a media player installed, so you go and ask someone who has WinNT, if there is a orignal media player installed when you first install WInNT>..

-Viktor
--Ivanov
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question