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
Solved

MediaPlayer Filename

Posted on 1998-10-14
2
950 Views
Last Modified: 2008-03-06
How to set the Filename for a AVI-File for the Mediaplayer on Runtime?

I tried to set the name this way:

  sPfad:=ExtractFilePath(ParamStr(0));
  MediaPlayer1.FileName:=sPfad+'\bin\animauts.avi';

Why does the error EMCIDevice Error occurs? Where to place the Code in my Program,.... ??

Thanx Choli
0
Comment
Question by:Choli100298
2 Comments
 
LVL 1

Accepted Solution

by:
lar_jens earned 10 total points
ID: 1342892
Do not use sPfad + '\bin\animauts.avi'; .. It won't work...

Use StrCat instead..

StrCat appends a copy of Source to the end of Dest and returns the concatenated string.

Unit

SysUtils

Category

string handling routines (null-terminated)

function StrCat(Dest, Source: PChar): PChar;

Description

StrCat does not perform any length checking. The destination buffer must have room for at least StrLen(Dest)+StrLen(Source)+1 characters.
To check length, use the StrLCat function.

0
 

Author Comment

by:Choli100298
ID: 1342893
Problem was not the string-operation. Problem was the media-player component. My String operation is ok.
Found the solution by myself.

thanx
Choli
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
delphi exception 7 68
FMX enumerated colours 2 115
Find and Replace Stream with 0s 8 69
firemonkey Android Listview Sort items 7 47
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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