Solved

error seacrhing for pas file

Posted on 2006-11-09
5
314 Views
Last Modified: 2010-04-05
I installed  a new  component but Delphi 7 gives an error while compiling.
It tries to search for the pas file of the component but I only have a dcu file.
How can I solve this ??
0
Comment
Question by:data-nova
  • 3
  • 2
5 Comments
 
LVL 28

Expert Comment

by:TName
ID: 17906641
Is the directory containing the .dcu in the library path?
Tools > Environment Options > Library > Library Path
If not, try to add it.
0
 

Author Comment

by:data-nova
ID: 17912149

 yes this path is already in the library path
0
 
LVL 28

Expert Comment

by:TName
ID: 17912408
Could it be that it's a dcu for another Delphi version? If it wasn't compiled with D7's compiler, it won't be of much use for you. You'd need the pas file.
0
 
LVL 28

Accepted Solution

by:
TName earned 125 total points
ID: 17912527
The dcu has to match the exact Delphi version, even if the original pas file would work perfectly with D7. The compiler will recognize it's a different version and will not accept it.
If the path is correct, then I guess this is the problem. Try to obtain a D7 version of the compiled unit if possible.
(the pas is of course always the ideal choice).
0
 

Author Comment

by:data-nova
ID: 17913308

 Thank you :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 95
Delphi - replicating a form 8 81
Installshield for Embarcadero EX 10.1 Berlin 4 60
Firemonkey allowing RTL on android 6 47
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
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…

860 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