Solved

Include library path in source code?

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

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

Suggested Solutions

Title # Comments Views Activity
how to center only a line in richedit? 4 69
Delphi 2 77
Controlled Assessment GCSE - desperate help needed 4 112
Delphi...Split view - idea? 1 116
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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