Solved

Include library path in source code?

Posted on 2003-11-27
1
249 Views
Last Modified: 2010-04-03
I am using Delphi 3, and I have several projects that use a particular third party compenent.  Recently the component was upgraded to a new version, and some things changed with the component (new properties, functions, etc).  I have since started using the new version of the component and all is swell until I open an older project that used the older version of the component.  The D3 compiler refuses to compile my old projects that used the old version of the component.   I did install the new component into a separate/new folder so as to not overwrite the old version of the component.  I have discovered that if I change the path where the component is installed to using "Environment > Libraries > Directories > Library path" to the old component path, then the old projects will compile just fine.  This is a simple enough fix, but I'll probably forget a few months from now that this is what it takes to compile the old projects.

My question is...  is there a way that my project's source code can work around this?  IOW, is there a way to add to the "Environment > Libraries > Directories > Library path" via my project's PAS file?  Is there some directive that I can add to my source code that will eliminate the need for me to tweak the Library Path?
0
Comment
Question by:Kapusta
[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
1 Comment
 
LVL 2

Accepted Solution

by:
Robn earned 75 total points
ID: 9851631
Add the path to your project/options/search path. This path should supercede the library path if the source file names are the same.
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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

691 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