Page 1 of 1

PXCp_WriteDocumentW in Delphi Seattle 32 bit vs 64 bit

Posted: Tue Apr 19, 2016 7:41 am
by HELID
Hello!
I´m a Delphi Seattle/Delphi 10 developer. I have PDF-XChange 2012 SDK PRO version 5.5.316.1. When I build my application as 64-bit
I´m getting an access violation when calling PXCp_WriteDocumentW. When I build my application as a 32-bit, everything goes well.
What´s wrong?
I´m using the dll´s from Tracker Software\PDF-XChange PRO 5 SDK\Examples\Bin.x64 which I suppose is the one´s to use for a 64-bit application?

Best regards
Helena

Re: PXCp_WriteDocumentW in Delphi Seattle 32 bit vs 64 bit

Posted: Tue Apr 19, 2016 9:02 am
by Sasha - Tracker Dev Team
Hello Helena,

Probably you're experiencing the same problem as described in this topic:
http://www.tracker-software.com/forum3/ ... 59&p=98969
If not, please provide us with a working code sample that we can try and fix the problem.

Cheers,
Alex

Re: PXCp_WriteDocumentW in Delphi Seattle 32 bit vs 64 bit

Posted: Tue Aug 29, 2017 8:59 am
by kurthum
Hi,

I had the same problem with 64-bit version of PDF-Tools. The Delphi-code has the same problem as the .Net-declarations. The type for HPDF in PXC_40_Types.pas is wrong for 64-bit:
Type
HPDF = Cardinal;

For me changing to:
Type
HPDF = Pointer;
solved the problem

Regards
Kurt