Solved

Trouble with instally Packages in Delphi 2006

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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.

760 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

22 Experts available now in Live!

Get 1:1 Help Now