Solved

Include library path in source code?

Posted on 2003-11-27
1
247 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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