Home › Forums › TWAIN Classic › Bad TWAIN structure definition › Reply To: Bad TWAIN structure definition
Hi Jim, thanks for your interest. I am not defining my own structures, I have naturally included twain.h “as is”. I am using an old -but good- RAD, the Borland C++ Builder Pro release 3 (ehm, it dates back to 1997…) that I have installed in my Windows XP PC.
The pragma directive that you mention is obviously included in the header, but in the “#else” case of an “#ifdef __BORLANDC__” structure.
I am wondering whether I should reverse the cases in the ifdef structure, but I am not that expert to take such an initiative. At the same time I am wondering whether the absence of the #pragma pack (2) directive could be the cause of all the troubles that I am stumbling into (lots of TWCC_BADVALUE” when setting capabilities).
I need to get uncompressed B&W letter size images at 200 dpi from any TWAIN scanner, and I also am in a hurry. I am also considering to switch using the ISIS device driver, although this would mean restart programming from scratch.
Regards from Alvise.