PXCp_WriteDocumentW in Delphi Seattle 32 bit vs 64 bit

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
HELID
User
Posts: 20
Joined: Wed Feb 24, 2010 11:40 am

PXCp_WriteDocumentW in Delphi Seattle 32 bit vs 64 bit

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PXCp_WriteDocumentW in Delphi Seattle 32 bit vs 64 bit

Post by Sasha - Tracker Dev Team »

Hello Helena,

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

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
kurthum
User
Posts: 1
Joined: Tue Aug 29, 2017 8:45 am

Re: PXCp_WriteDocumentW in Delphi Seattle 32 bit vs 64 bit

Post 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
Post Reply