Solved

Include library path in source code?

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help on project with Soap 10 52
Correct Component for Shopping Cart. 2 104
Run video youtube webbrowse 10 61
Delphi: Connect to running MS Outlook 4 77
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

9 Experts available now in Live!

Get 1:1 Help Now