Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

D4: using *.DCU without source?

Posted on 1998-10-25
3
Medium Priority
?
350 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

604 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