Page 1 of 1

IPXC_Document::DeferedDigitalSign Method

Posted: Mon Jan 23, 2017 10:24 am
by Tom Princen
When I look at the online help it states that there is a return value.

https://sdkhelp.pdf-xchange.com/vie ... igitalSign

But when I import the core api dll in visual studio c# it says its a void function???

[DispId(1610743904)]
void DeferedDigitalSign(ref _CERT_CONTEXT pCert, uint nFlags, uint nPageIdx, ref PXC_Rect pRect, string sReason, string sLocation, string sContactInfo, string sImageFile);

So how do i know if the procedure was successful?

Re: IPXC_Document::DeferedDigitalSign Method

Posted: Mon Jan 23, 2017 10:28 am
by Sasha - Tracker Dev Team
Hello Tom,

That's the C# wrapper. The C++ uses HRESULT to return the value. In the C# you will need to use the try-catch block to handle exceptions.

Cheers,
Alex

Re: IPXC_Document::DeferedDigitalSign Method

Posted: Mon Jan 23, 2017 10:32 am
by Tom Princen
And is there a way to catch the error code?

Re: IPXC_Document::DeferedDigitalSign Method

Posted: Mon Jan 23, 2017 1:38 pm
by Sasha - Tracker Dev Team
Of course - read the try-catch explanation on the msdn:
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx