Home › Forums › TWAIN Classic › HOW TO DELETE AN IMAGE FROM SOURCE? › Reply To: HOW TO DELETE AN IMAGE FROM SOURCE?
@kucey wrote:
I get the twain.h 1.9 ,send the message DG_CONTROL DAT_FILESYSTEM to the source manager but it failed .The return code is “TWCC_BADPROTOCOL”.So nothing to do.
what reason?
not to nag the small parts but TWCC_BADPROTOCOL is a ‘condition code’ ‘return codes’ start with TWRC_
if DG_CONTROL / DAT_STATUS / MSG_GET is returning TWCC_BADPROTOCOL, then the deviced/driver doesn’t support the operational triplet – not all(any?) sources support all of the defines triplets. part of this may just be another facet of the old question ‘what does twain compatible mean’ – it could very well be that the device is compatible with twain 1.6 and no matter what header you include in your project the driver only support the 1.6 twain spec.
Are you certain that the image is still on the device after you pull it out of the device with your native transfer?
What twState where you in when the triplet failed?
What triplet did you call? – you say
send the message DG_CONTROL DAT_FILESYSTEM to the source manager but it failed
which message did you send?
If the code from the spec fails (and the file still exists on the device) you may have to use non-twain methods to remove the file.