?
Solved

D4: using *.DCU without source?

Posted on 1998-10-25
3
Medium Priority
?
345 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
[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
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 240 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

777 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