Installing Components from dcu-files

I'm using Delphi 3.0, and I have some 3rd party components which only include the .dcu files (no .dpk or .pas). I haven't been able to install them because Delphi gives an error when I try to build a package with them. The error is that Delphi cannot find the .pas file for the component, but I thought  that wasn't necessary. Does anybody know what the problem is?
red_2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kretzschmarCommented:
hi red 2,

you must get the dcu-files for your current delphi-version AND release,
otherwise you've no chance to install this components.

contact the developer of these components

meikl
0
DrDelphiCommented:
Actually, you can install these into a package (assuming that they are compiled in Delphi 3) by creating a new package (File/New/Package), adding the DCU files and setting Explicit rebuild to false. This will work ONLY if the DCU files are meant for use in Delphi 3, otherwise you will get an error and a message saying that lines are being truncated, etc... if you do see that get out of it ASAP and DO NOT SAVE!! (not if you ever want to use that DCU in the right version of Delphi).

Good luck!!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rwilson032697Commented:
Listening
0
red_2Author Commented:
The dcu's are compiled in Delphi 2.0. Is there no way to make them work in 3.0 (other than rebuilding them from the source, which I don't have)?
0
DrDelphiCommented:
Nope, sorry. Each version of Delphi compiles in a binary format properiarty to that version. Meaning that a DCU compiled in 2 won't work in 3, 3 in 4, etc, etc.. Your only recourse at this point is to obtain eithera Delphi 3 version  of the DCU or the original source PAS files.



Good luck!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.