Solved

how to use the '*.dcu' files?

Posted on 2002-04-02
3
297 Views
Last Modified: 2010-04-04
Hi all,

I had the 'aaa.dcu' file, but hadn't the 'aaa.pas',I put the file in the directory /lib/,but I can't uses it.

[Fatal Error] File not found: 'd:\program files\borland\delphi6\Projects\Bpl\aaa.pas'

PLS help me......
0
Comment
Question by:li_fang
3 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 100 total points
ID: 6914940

Unless the DCU was built by the EXACT same version of the compiler you have, then it's useless for you.

The reason for this is because the DCU's signature changes everytime there's a new release of Delphi and even everytime a new service pack is released. When the compiler tries to link the DCU into the EXE being built, it first checks if the DCU's signature is the same as its own signature (aka version). If it's not the same, it tries to find the original source file and build from it (the .PAS file). When the .PAS file is not found, then it results in the problem you're currently have.

For example, the DCUs built with Delphi 5.01 will NOT work with Delphi 5.00 or 5.02 (and so on).

Therefore, there are 2 reasons for the problem you're having:

1) you DO HAVE the aaa.pas but Delphi can't find it.
SOLUTION: In this case I suggest you put the .pas file in the SAME folder where the .DCU file resides or go to the Delphi menu
Tools -> environment options -> Library
and make sure that the folder where the .PAS file is is listed among the folders in the "Library Path" list.

2) you DO NOT HAVE the .PAS file:
SOLUTION: try to ask the person who wrote aaa.pas to send you the .pas file or send you the .DCU file that matches the exact same version of the compiler you have.

Yours,

Alex
Athena's Place: http://www.bhnet.com.br/~simonet


0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6915245
hi alex,
you was long time not active here,
glad to see you

meikl ;-)
0
 

Author Comment

by:li_fang
ID: 6919776
Tks!

And I had another question.please help me,freely?

I build a program ,how can I import all 'dll' files what it need???And how to know what is it needs???
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

713 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