Solved

D4: using *.DCU without source?

Posted on 1998-10-25
3
331 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
ID: 1344332
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
ID: 1344333
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
ID: 1344334
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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