Solved

D4: using *.DCU without source?

Posted on 1998-10-25
3
328 Views
Last Modified: 2010-04-06
I have the following problem:
When I try to use a *.DCU without having the source code, the Delphi 4 compiler gives me the following error message:
"[Fatal error] File not found: 'F:\Delphi\Delphi4\Imports\MyUnit.pas'"

The same project compiles fine in Delphi 3, the path to the *.dcu is in the path for my project

Any ideas?
0
Comment
Question by:Thesan
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 60 total points
Comment Utility
You can't use D3 DCU's in D4! To use the unit, you need the sourcecode to be able to recompile it in D4. This applies to all versions of Delphi, DCU's are only valid for the version that has compiled them...
0
 

Author Comment

by:Thesan
Comment Utility
Oooops - sorry, I complete forgot that this question had been answered.

I'm not happy about the answer :-(( - but since it's apparently correct, it's an A after all. I shouldn't have assigned 60 points though :-))

Thanks!

btw: Does everybody agree that you cannot use any component without having the source code? What if you want to use your project in the next Delphi version??
0
 
LVL 7

Expert Comment

by:BlackMan
Comment Utility
When you use 3-part components, ALWAYS be sure to get the sourcecode, otherwise you'll face problems like you do now....
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

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

16 Experts available now in Live!

Get 1:1 Help Now