Author |
Topic |
|
jrpcguru
USA
266 Posts |
Posted - Oct 26 2024 : 13:08:25
|
My Scanning program in 32 bit D10.3 or 12.2 successfully reads Twain properties and scans, as it has for many years. When I tried to convert to D12.2, 64 bit, the scanning capability disappeared.
At first I thought there was some error on my part. But eventually I loaded your TwainDemo.dproj. It used the same code as I was using and worked in 32 bit but stopped dead in its tracks in 64 bit. Reading the forum, it appears this may be a long term problem.
Is there any hope for getting ImageEn to work in 64 bit Delphi with Twain drivers? Neither of my test scanners has a 64 bit driver available and I couldn't count on any customer machine to have 64 bit drivers either.
If not, I would suggest documenting this in the help file.
J.R. |
|
xequte
38608 Posts |
Posted - Oct 26 2024 : 17:41:07
|
Hi JR
This issue is not because of ImageEn, it is because scanner manufacturers generally do not release 64bit Twain drivers. A 64bit application cannot use 32bit drivers, so without drivers you cannot access the device.
You should use WIA instead of Twain. For 64bit support on Windows, manufacturers usually include a "WIA over Twain" driver.
Another solution would be for you to create a 32bit DLL to do the Twain communication for you (as a 64bit app can connect to a 32bit DLL).
Nigel Xequte Software www.imageen.com
|
|
|
jrpcguru
USA
266 Posts |
Posted - Oct 26 2024 : 18:23:17
|
I've never made a DLL. I guess I'm in for some research on how to do that. But it seems like a good idea. I wonder if anyone else has already done that? I guess I'll be researching for awhile. Surely I'm not the only one with this issue. Since you are the experts on DLLs, I wonder if it could be in your plan to make that DLL?
My alternative to a DLL was to split the program into a purely scanning program and an editing program. I never wanted to do that since it would mean duplicative work to maintain the program. I will see how this new line of research goes.
Thanks.
J.R. |
|
|
xequte
38608 Posts |
Posted - Oct 26 2024 : 19:32:17
|
Hi JR
Why not just use WIA instead of Twain?
Nigel Xequte Software www.imageen.com
|
|
|
jrpcguru
USA
266 Posts |
Posted - Oct 26 2024 : 20:20:55
|
I will inspect that possibility. As I sit here, I don't remember if both of my test scanners provide a WIA driver, and I'll need to confirm that for customers, too.
I do remember that I built a feature into my scanning program to allow users to hide drivers they didn't want to use, because way back then, my sample of a WIA driver was much less capable than the Twain driver. Perhaps that is no longer true?
I will do some homework.
J.R. |
|
|
xequte
38608 Posts |
Posted - Oct 27 2024 : 17:33:09
|
Hi
I would expect a modern scanner to include a 64bit WIA driver.
Nigel Xequte Software www.imageen.com
|
|
|
|
Topic |
|