Home › Forums › TWAIN Classic › Differences between the PDF Specifications and twain.h
- This topic has 2 replies, 3 voices, and was last updated 11 years, 2 months ago by spike.
- AuthorPosts
Hi everyone,
Why are there so many differences between the constant values mentioned in twain.h and 2.1 specification document? E.g. the value of Capabilities.IUnits is 0x0102 in the header file, whereas it is 0x0103 in the specs (page 8-74). Which one is correct?
I think it depends what your using. Twain.h is done in C++, the book may be referring to C# method. I think don’t quote me just at home checking out this stuff.
Hi shujaat – the twain.h distributed by the TWAIN Working Group is a C/C++ declaration file – there is no IUnits anywhere in it.
There is an ICAP_UNITS defined as 0x0102 in twain.h. It is listed has having the value 0x0102 on 8-73 in the TWAIN 2.2 Spec.pdf.
So I’m confused.Maybe take a look at the header of your .h file and find out who wrote it and what version it is, then post back here with that information.
Also if you see a declaration that seems to differ from the TWAIN specification, make sure you tell us what version of the specification (so we can look at the same version), and ideally, cite the line – or at least the specific identifier you are talking about.- AuthorPosts