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
 TwainParams.SourceCount 64bit
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

134 Posts

Posted - Jul 22 2019 :  02:38:19  Show Profile  Reply
In the TwainDemo, available scanning devices are listed using TwainParams.SourceCount:

for i := 0 to ImageEnView1.IO.TwainParams.SourceCount - 1 do
ComboBox1.Items.Add( String( ImageEnView1.IO.TwainParams.SourceName[i] ));

Compiled in 32bit the demo works fine, in 64bit the list is empty because the above mentioned code had been ignored. May you reproduce it?

Is this caused by some property of the driver or is TwainParams.SourceCount working only in 32bit?

Al

xequte

38613 Posts

Posted - Jul 22 2019 :  22:05:36  Show Profile  Reply
Hi Al

What makes you say the code is "ignored". The Twain code is compiled in both 32 and 64bit modes.

More likely you are seeing an absence of Twain drivers. Many manufactures do not bother including 64bit Twain drivers (usually they only include WIA drivers).

If you need to test 64bit Twain support, you can use the FreeImage Software scanner driver:

https://sourceforge.net/projects/twain-samples/files/TWAIN%202%20Sample%20Data%20Source/


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

aleatprog

134 Posts

Posted - Jul 23 2019 :  13:29:54  Show Profile  Reply
Hi Nigel,

I chose the term "ignored" as in debug mode the above code is skipped/jumped/not processed while pressing F8. And, yes, as I wrote, probably it's due to some driver property. Did the TwainDemo worked well on your side in 64bit?

Meanwhile, I connected the same scanner using WIA which works perfect in 64bit.

Al
Go to Top of Page

xequte

38613 Posts

Posted - Jul 25 2019 :  04:33:48  Show Profile  Reply
Hi Al

Yes, it works correctly on our test system.



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