Solved

how to use the '*.dcu' files?

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 2010 Export to pdf 2 331
Create Database on Android via Delphi dbExpress 3 88
Delphi and Access based Enumeration 9 59
RESTRequest Parameter 4 30
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 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