 |
Article:
 |
 |
Java Tech: Acquire Images with TWAIN and SANE, Part 2
|
| Subject: |
dummy questions |
| Date: |
2005-11-22 21:16:03 |
| From: |
javajeff |
|
Response to: dummy questions
|

|
Hello,
Thanks for your kind words. Here are the answers to your questions:
> 1.- the jtwain.dll and the jtwain.class manage every kind of scanner?
Ideally, the DLL and class should work with every kind of scanner. However, I am aware that some scanners don't work properly with JTwain while other scanners have no problem. I assume that the problem is due to a scanner's data source DLL (I have learned that poorly-written data sources are usually the cause of many problems).
> 2.- if i want more functions i must modify by myself the jtwain.cpp?
You can contact me and I will see what I can do to help. I won't make any promises that I can implement your functionality, but I will consider it.
> 3.- can i put the jtwain.dll, jtwain.class, jtwainexception.class and UnsupportedCapabilityException.class in a jar and use only this jar? these are all the files that i need?
You cannot put a DLL into a Jar file. However, I believe the classfiles can be placed into a Jar, although I haven't tried to do so. The DLL is typically placed in the Windows directory -- such as c:\windows under Windows 98 SE. I believe these are all the files you need.
> 4.- can i use your code in my commercial application?
Feel free to use the code in a commerical application.
> 5.- i look in the installation files of my scanner (hp) and i found some files called twain.dll, what are these files? can i use them?
I explained these files in the first installment of this series. Here is the pertinent paragraph:
For the Windows platform, there are two source managers: the twain.dll 16-bit source manager and the twain_32.dll 32-bit source manager. Both source managers exist in my c:\windows directory. Along with those files are twunk_16.exe and twunk_32.exe. They make it possible for the 32-bit source manager to enumerate 16-bit sources and for the 16-bit source manager to enumerate 32-bit sources. In this series, the only source manager file I'm interested in is twain_32.dll.
All the best.
Jeff |
|