Solved

Include library path in source code?

Posted on 2003-11-27
1
243 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
1 Comment
 
LVL 2

Accepted Solution

by:
Robn earned 75 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

14 Experts available now in Live!

Get 1:1 Help Now