error seacrhing for pas file

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 ??
data-novaAsked:
Who is Participating?
 
TNameConnect With a Mentor Commented:
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
 
TNameCommented:
Is the directory containing the .dcu in the library path?
Tools > Environment Options > Library > Library Path
If not, try to add it.
0
 
data-novaAuthor Commented:

 yes this path is already in the library path
0
 
TNameCommented:
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
 
data-novaAuthor Commented:

 Thank you :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.