Search found 4 matches

by stewjames2000
Thu Jul 28, 2016 3:22 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: TWAIN Error Handling
Replies: 5
Views: 3003

Re: TWAIN Error Handling

Ok, I managed to get past the SXC_InitTwain issue (it was an issue with the scanners driver), but I'm now having a problem with SXC_GetSourcesInfo giving me TW_IDENTITY_4 data that is at the wrong offsets. Is there any byte packing/alignment issues I need to consider? Since it appears to be off by t...
by stewjames2000
Thu Jul 28, 2016 7:32 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: TWAIN Error Handling
Replies: 5
Views: 3003

Re: TWAIN Error Handling

Ah yes, my apologies it was a late night last night :) - The error code is indeed 10001. The exact HRESULT returned is 0x82092711. However, we do not appear to have a source file with the SCAN_ERR_CANNOT_LOAD_DSM definition, may I inquire as to which source file these 'SCAN_ERR_...' definitions are ...
by stewjames2000
Wed Jul 27, 2016 9:10 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: TWAIN Error Handling
Replies: 5
Views: 3003

Re: TWAIN Error Handling

Ok turns out I had a valid error code the entire time, after searching for '1001' in all of the headers - a DS_ERR_BAD_POINTER error.

I'm assuming this is caused by the call to SXC_CreateTwainObject - the TwainObject returned is not NULL however.
by stewjames2000
Wed Jul 27, 2016 3:02 pm
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: TWAIN Error Handling
Replies: 5
Views: 3003

TWAIN Error Handling

Greetings, I am having a problem trying to use the TWAIN functionality provided as part of the SDK. The issue I'm having is my call to SXC_InitTwain is returning failure, however I cannot for the life of me work out how to get the cause of the error out of the HRESULT. Would you be able to provide m...