Solved

how to use the '*.dcu' files?

Posted on 2002-04-02
3
296 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 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