?
Solved

Trouble with instally Packages in Delphi 2006

Posted on 2007-03-22
2
Medium Priority
?
245 Views
Last Modified: 2013-11-23
Hi,

I have just upgraded to Delphi 2006 from Delphi 7, the problem is that we have some “home grown” VCL Components, in Delphi 7 we used to install them directly into the IDE.

However 2006 insists (rightly so) you make them into Packages and compile, build and install them. This I found straight forward. (Can go in more detail if need be)

The problem is when I use the component, it draws it on the form and I can inspect it using the object inspector.

However when I run the program it throws a compiler error saying it does not recognise the unit defined the "use" clause.  

The only way I can get the program to run is add the unit to search directory in the project options, surely this is not right way to install and USE components in 2006.

Thanks in Advance

GTwoD
0
Comment
Question by:GTwoD
[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 Comments
 
LVL 18

Accepted Solution

by:
Johnjces earned 2000 total points
ID: 18771934
I had the same problem with some components and even some that required a manual install into BDS 2006.

Instead of in the projects portion, add the directory that all of your units are in to the library path of D2006.

Tools > Options  Delphi Options . Library - Win32

D2006 wants to have everything pathed somewhere. I had a heck of a time with one and finally had to search the source and dpr to see that a unit had a set path elsewhere and then still had to make sure that uniot was pathed correctly in D2006.

I hope this made sense!

John
0
 
LVL 1

Author Comment

by:GTwoD
ID: 18778639
Hi John

That worked a treat, also some of the units were on a networked drive, which delphi does not like.

Is there some definitive guide on packaging building/installing anywhere. All I had to go on was help files.

Thanks for your help.

Ger.

0

Featured Post

Independent Software Vendors: 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 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