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?
IPXC_Document::DeferedDigitalSign Method
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 83
- Joined: Wed Mar 25, 2015 10:15 am
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: IPXC_Document::DeferedDigitalSign Method
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
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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 83
- Joined: Wed Mar 25, 2015 10:15 am
Re: IPXC_Document::DeferedDigitalSign Method
And is there a way to catch the error code?
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: IPXC_Document::DeferedDigitalSign Method
Of course - read the try-catch explanation on the msdn:
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ