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

x
?
Solved

Trouble with instally Packages in Delphi 2006

Posted on 2007-03-22
2
Medium Priority
?
247 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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…
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.
Suggested Courses

610 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