Solved

Trouble with instally Packages in Delphi 2006

Posted on 2007-03-22
2
242 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

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

733 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