Click to See Complete Forum and Search --> : Using different dll versions on same pc


Jose Camejo
May 4th, 1999, 09:09 AM
I have an application on VC++ 4.0 using the crystal reports product that comes with it. If I install this application on another machine that has a newer version of crystal report?, will my application encounter problems?, and can I force my application to use the older dll versions on that pc, the ones that come with VC++ 4.0?

Thanks for any help given...
Jose

May 4th, 1999, 02:34 PM
Windows locates DLLs in a particular order:
already loaded
current dir
windows dir
windows system dir
the executable's dir
the path

If you actually have a problem, probably the easiest thing to do is to copy the DLLs needed by the old application to the directory you are running it from. This won't be perfect because if the DLL is already loaded (by a newer app), the loaded version will be used if it has the same internal name (but it might be good enough).

In the long run, if it is possible, upgrading stuff tends to be the best approach (IMHO).