Solved

error seacrhing for pas file

Posted on 2006-11-09
5
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 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