Solved

D4: using *.DCU without source?

Posted on 1998-10-25
3
332 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi parse string to params 3 136
Dev express lookupcombo 3 35
update joined tables 2 55
How to Get Images From Server to Client using App Tethering 1 27
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

831 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