1
votes

I have included QuickPDF0724 unit in uses in one of my pas file. I have give the path of this unit in Tools --> Options. But I am getting the error: "F2063 Could not compile used unit 'QuickPDF0724.pas'"

In the path mentioned of that unit, only dcu file is there, no pas file.

Same code is working fine in Delphi 7 but not in Delphi XE4. What could be the reason?

2
What about your previous questions? Are they finished yet?David Heffernan
@DavidHeffernan - I have commented and accepted your answer.user1556433
@DavidHeffernan - I have given answer to that question.user1556433
It looks to me as though Jan's answer is the correct one. I still feel that you should fix that question to include the different DevEx versions since that's actually the issue. It's important to wrap these questions up. I guess you've got a solution to your problem, but we care about the questions. There's a subtle difference between the problem that you have to solve, and the questions that you ask and we try to answer.David Heffernan

2 Answers

4
votes

In the path mentioned of that unit, only dcu file is there, no pas file.

DCUs are Delphi version dependent.

So your DCU made in Delphi 7 cannot be read by Delphi XE4 and by any other Delphi version but Delphi 7 (with the same set of updates installed - those updates may change Delphi RTL and make dependencies in those DCUs fail).

That means you either need to take QuickPDF0724.pas and compile it with your version of Delphi XE4, or you need to find someone who would do it for you and then send you the resulting DCU they made (wither possible - made exactly for the same Build of Delphi XE4 (Build number is changed by installing update packs) as you have).

0
votes

My Delphi 7 application was using QuickPDF0724 and same I was trying in Delphi XE4. QuickPDF0724 has version number 7.24. This was not compatible with Delphi XE4.

So, I downloaded latest version of QuickPDF i,e DebenuPDFLibrary1011 having version number 10.11 which is compatible with Delphi XE4.

I did few changes in the code like:

  1. Changed unit name in uses from QuickPDF0724 to DebenuPDFLibrary1011.
  2. Changed declaration in the code like objQuickPDF : TDebenuPDFLibrary1011 from objQuickPDF : TQuickPDF0724
  3. Changed constructor: objQuickPDF := TDebenuPDFLibrary1011.Create instead of objQuickPDF := TQuickPDF0724.Create

Rest was fine...