Solved

error seacrhing for pas file

Posted on 2006-11-09
5
310 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

13 Experts available now in Live!

Get 1:1 Help Now