PXCLIB40 and XCPRO40 LIB

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, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
ericr
User
Posts: 14
Joined: Wed Jan 28, 2015 4:50 pm

PXCLIB40 and XCPRO40 LIB

Post by ericr » Thu Jan 29, 2015 6:34 pm

Hello,

I have a issue.

PXCLIB40 and XCPRO40 LIB same methods cannot work in netframework 4.0

this a example:

if (Common.IS_DS_FAILED(PDFXC_Funcs.PXC_NewDocument(out pdf, key, key_code)))
return;

this code work fine in netframework 2 and 3.5, but netframework 4 cannot work.




regards

Ivan - Tracker Software
Site Admin
Posts: 3626
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: PXCLIB40 and XCPRO40 LIB

Post by Ivan - Tracker Software » Fri Jan 30, 2015 1:32 am

I suppose your project uses "Any CPU" configuration.
I'm not a guru in .NET, but looks like it doesn't work with .NET 4.0 as it was in 2.0

The problem is with your type int used in the PXC_NewDocument declaration.
For 32-bit apps it should be a 32-bit value (int is ok), but for 64-bits it should be a long.

If you know that it is a 32-bit in 32-bit configuration and 64-bits in 64-bits configuration - please use this type.

Or just create x86 configuration of your project in its entirety....
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

ericr
User
Posts: 14
Joined: Wed Jan 28, 2015 4:50 pm

Re: PXCLIB40 and XCPRO40 LIB

Post by ericr » Fri Jan 30, 2015 4:44 pm

ok. the problem is how to call methods.

I resolved this issue. the external dll in same times clean local variable string inside local function. Set string in null and call exception StackOverflowException.


regards

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14095
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PXCLIB40 and XCPRO40 LIB

Post by Tracker Supp-Stefan » Fri Jan 30, 2015 4:55 pm

Hi ericr,

Glad to hear it was resolved!

Cheers,
Stefan

Post Reply