As a followup to my previous message, I've discovered that you cannot set ICAP_FRAMES in twacker when TWAIN_32 Sample Source is the current data source. I say that because the initialization code for ICAP_FRAMES in the InitializeCaps() function (see dscaps.c) does not support the TWQC_SET message -- although the TWQC_GET, TWQC_GETDEFAULT, and TWQC_GETCURRENT messages are supported (so you can get the ICAP_FRAMES settings). My HP scanner also does not appear to support ICAP_FRAMES, so I'm assuming that the code I tested works -- though I cannot be 100% sure that it works since my data sources don't support ICAP_FRAMES. I look forward to hearing from you regarding your experiments.
Because this forum is awkward for sharing code, feel free to email me at jeff@gatewest.net. I'll be happy to send you my jtwain.cpp, jtwain.dll, and JTwain.java files (with the setFrames() method supported). Perhaps we can resolve this problem once I can send you the complete code.
Jeff |