Solved

how to use the '*.dcu' files?

Posted on 2002-04-02
3
290 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
Comment Utility

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
Comment Utility
hi alex,
you was long time not active here,
glad to see you

meikl ;-)
0
 

Author Comment

by:li_fang
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

10 Experts available now in Live!

Get 1:1 Help Now