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.
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 me with any assistance?
I've attached my code below, note it is still a work in progress - since I'm just trying to get SXC_InitTwain to work before I can do any further work.
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 supposed to be? I'm currently working off scaner.h, scannerWIA.h & ds_error_maker.h
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 two bytes for the TW_STR32 data e.g