ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Reading Twain scanner properties with 64 bit Delphi
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
266 Posts

Posted - Oct 26 2024 :  13:08:25  Show Profile  Reply
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  Show Profile  Reply
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
Go to Top of Page

jrpcguru

USA
266 Posts

Posted - Oct 26 2024 :  18:23:17  Show Profile  Reply
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.
Go to Top of Page

xequte

38608 Posts

Posted - Oct 26 2024 :  19:32:17  Show Profile  Reply
Hi JR

Why not just use WIA instead of Twain?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jrpcguru

USA
266 Posts

Posted - Oct 26 2024 :  20:20:55  Show Profile  Reply
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.
Go to Top of Page

xequte

38608 Posts

Posted - Oct 27 2024 :  17:33:09  Show Profile  Reply
Hi

I would expect a modern scanner to include a 64bit WIA driver.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: