Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File not found in Delphi 7

I am a beginner in Delphi. I am getting the error File not found : 'StreamFlashPlayer.dcu' in Delphi 7.

How can I fix this error and from where I get this StreamFlashPlayer.dcu file

like image 998
Nelson T Joseph Avatar asked Jun 15 '11 07:06

Nelson T Joseph


2 Answers

A DCU is the compiled version of a PAS file.

So whenever you get this error, you can resolve it either by ensuring Delphi can access the DCU file, or the PAS file. (Usually the PAS file is the better option.)

You might have to search your machine to find out if you have a copy of this file in the first place. From a Command prompt you can search as follows: dir /a/s StramFlashPlayer.*

Delphi finds the files it needs to compile a project in the following ways:

1. Explicitly included in your project file.

E.g.

uses
  Forms,
  MyUnit in 'MyUnit.pas',
  UnitInAnotherFolder in '..\AnotherFolder\UnitInAnotherFolder.pas';

2. Included in the Search Path of your project

This is a list of folders where Delphi will search for the required file. It's configured on a per-project basis under Project Options.

3. Included Library Path

This is another list of folders where Delphi will search for the required file. It's configured for all projects in the Environment Options.

Choosing which option to use

You probably want to use option 1 in most cases. Especially if it's a file you'll likely be editing.

If the file is provided by someone else (3rd party components etc.), you probably want option 2 or 3, depending on whether the 3rd party library will be used in most of your projects or just a small number of specific ones.

like image 165
Disillusioned Avatar answered Nov 05 '22 18:11

Disillusioned


I suppose you have you downloaded some source code Delphi project from the web and are trying to compile it in your IDE.

The StreamFlashPlayer.dcu unit is not part of the standard Delphi installation (at least I've never heard of it).

What I've found is a component called StreamFlashPlayer 0.5 on Torry's Delphi Pages. You'd have to download and install the component in the Delphi IDE before you can compile the source code for your project.

like image 23
Thorsten Dittmar Avatar answered Nov 05 '22 19:11

Thorsten Dittmar