- Topics - 60
- Replies - 107
- Total Posts - 167
Be careful with the sample source. There are some problems. Most notably, if you try to set the X_Resolution property, you always get a BadValue error. It’s useful in some respects, but there are some small bugs that keep it from being an ideal “proving ground” for TWAIN development.
I got a post on the twain.org website that mentioned that the TWAIN/WIA drivers do give some bad values, but the results aren’t predictable from one device to the next. I think it’s safe to say that these drivers are not TWAIN-compliant.
I don’t yet know much about WIA to tell you about the alternative. Probably, the device responses will be consistent for the particular machine and device you are using. If you make your own map of values to actions, you be able to get something accomplished.
I am currently writing an application for a computer microscope using TWAIN and I am testing the application using the microscope, the TWAIN sample source and my TWAIN/WIA webcam. None of them are fully functional at the moment. Oddly enough, the webcam seems to be a bit more functional than the sample source (in state 5, several buttons work, while the sample sources buttons don’t work at all). Is this similar to your experiences?
(I know something is wrong with the TWAIN part of my event loop. My guess is that the working buttons don’t use TWAIN commands, but work with WIA instead… but I am absolutely no expert in these matters.)