MediaPlayer Filename

Posted on 1998-10-14
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:


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

Thanx Choli
Question by:Choli100298

Accepted Solution

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.




string handling routines (null-terminated)

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


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.


Author Comment

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


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 79
Using idhttp to login to instagram 2 76
When I am typing into a TEdit last word repeats 7 117
select query - oracle 16 92
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now