- Topics - 9
- Replies - 583
- Total Posts - 592
Read the twain spec, search for ‘condition code’. The condition code is similar to the return code except the condition code (if you’re lucky) tells you why. You’ll want the condition code when the return code is failure, it will tell you that a particular twain call failed because the device doesn’t support a particular capability or because the twState of the device isn’t quite right or etc…
Read the spec.
Also, decisions based on rc aren’t a good idea; you’ll want to make decisions based on rc & cc, not rc alone.