Solved

Trouble with instally Packages in Delphi 2006

Posted on 2007-03-22
2
236 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
2 Comments
 
LVL 18

Accepted Solution

by:
Johnjces earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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.

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now