Frequently Asked Question:
Easily switching between versions with the Delphi edition
I'm using the Delphi edition of Quick PDF Library and I'm wondering if there is a quick and easy way to switch between versions of the library while testing?
For example, I want to be able to quickly switch from using version 7.16 to 7.18 to compare the results between these two versions. But at the moment the only way to do this is to change the Search Paths settings in the project, which takes a little bit of time.
I've tried a few different things but it looks like the only way to switch between different versions of Quick PDF Library in Delphi is to change the Search Paths settings in the project.
I tried having more than one path setup at the same time but because the DCU files have the same name it can't differentiate between the two versions just by changing the uses clause.
One possible solution would be to have the different versions in two folders like this:
- C:\QPLTest\0718\
- C:\QPLTest\0716\
Then rename one of the folders to C:\QPLTest\Active\
Setup the Search Paths to the Active folder and compile.
To use the other version, rename the Active folder back to the original name and rename the other folder to Active and recompile. This could be mostly automated by way of a short script that would take care of the folder renaming.
Another alternative is to just use the ActiveX version and switch between the class names - this could be done at runtime.