File not found in Delphi 7

I am new to Delphi. I get an error File not found: 'StreamFlashPlayer.dcu' in Delphi 7.

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

+6
source share
2 answers

I assume that you downloaded some source code for the Delphi project from the Internet and are trying to compile it in your IDE.

The StreamFlashPlayer.dcu block StreamFlashPlayer.dcu not part of the standard Delphi installation (at least I never heard of that).

What I found is a component called StreamFlashPlayer 0.5 on Torry Delphi pages. You will need to download and install the component in a Delphi environment before you can compile the source code for your project.

+10
source

DCU is a compiled version of a PAS file.

Therefore, whenever you receive this error, you can resolve it either by ensuring that Delphi can access the DCU file or the PAS file. (Usually the best option is a PAS file.)

You may need to search your computer to see if you have a copy of this file. At the command line, you can search as follows: dir /a/s StramFlashPlayer.*

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

1. Explicitly included in the project file.

eg.

 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 in which Delphi will search for the desired file. It is configured for each project in the "Project Settings" section.

3. Library path included

This is another list of folders in which Delphi will search for the desired file. It is configured for all projects in the environment settings.

Choosing which option to use

You probably want to use option 1 in most cases. Especially if it is a file that you are likely to edit.

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

+11
source

Source: https://habr.com/ru/post/890583/


All Articles