Home › Forums › TWAIN Classic › How to access 32-bit Twain Drivers from 64-bit TwainDSM
- This topic is empty.
- AuthorPosts
- Nithya G
Hi,
We are developing 64-bit C# application for access Scanner feature. 64-bit TwainDSM loads scanners from 64-bit Twain Drivers installed.
As most of as know, most of the Scanner has only 32-bit Twain driver. I can see that some of the third party providers mentioned that it is possible to access 32-bit drivers from 64-bit TwainDSM.
Can someone please help me to achieve the same in my C# application?
Thanks in advance
MarkIt is not possible to load a 32-bit TWAIN driver into a 64-bit process. And there’s no thunking layer like there was for 16-bit on 32-bit. The best way to handle this is to isolate the TWAIN capture code into its own program and build a 32-bit and a 64-bit copy. Then the application can call both of them to get the list of drivers, and go with the one the user selects. It’s worth noting that on Windows there will be 32-bit drivers for the foreseeable future. The main benefit of using a 64-bit driver is in situation where the size of the image could exceed 1GB. It is always a good idea to have a separate process for image capture.
Nithya GnanasekarMark,
I am really wondering how most of the third party Twain Scan Providers mentioned that they loading 32bit Twain drivers from 64-bit TwainDSM.
Do you mean to create one 32bit process for accessing 32bit Drivers and this process should be accessed from my 64bit application? Can you please elaborate on that.
Thank you.
MarkYes, that’s exactly how it works. You write a small application front end to the TWAIN driver and build that as 32-bit. Then you call that 32-bit application from your 64-bit application, and use your favorite IPC to tell it what to do and where to put the images it scans.
- AuthorPosts