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
 Code broken between version 4.0.1 and 6.0.1
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

JensFudge

Denmark
8 Posts

Posted - Jul 10 2015 :  03:01:07  Show Profile  Reply
In upgrading a project from Delphi 2010 to Delphi XE8 I have also purchased an upgrade from my ImageEn 4.0.1 to the latest which is 6.0.1.

I have D2010 with ImageEn 4.0.1 installed on one computer.
I have DXE8 with ImageEn 6.0.1 installed on another computer.

In the project I have a codeline:
ImageEn1.IO.Acquire(ieaTwain);

Which works fine on D2010, ImageEn 4.0.1.

When I compile this in my XE8, ImageEn 6.0.1, the compiler complains about the parameter ieaTwain not being boolean.

So, somewhere along the line of development, the signature for TImageEn.IO.Acquire was changed, thus breaking code.

Please note, I am not trying to bitch about the breaking code bit, I am solution oriented, and just want to know how to fix it?

I am aware that it will compile without the parameter, but I am wondering if I should tell TImageEn.IO that it is in fact ieaTwain I am trying to acquire.


Thanks a lot in advance.

Jens Fudge

xequte

38510 Posts

Posted - Jul 11 2015 :  03:44:15  Show Profile  Reply
Hi Jens

In v4.1.0 we added a generic acquisition interface so Twain, WIA and portable devices can be supported without caring what type of API it is.

In your case you should be able to just use:

ImageEn1.IO.Acquire();

Which will acquire from the current selected device (http://www.imageen.com/help/TImageEnIO.SelectedAcquireSource.html). Twain is the default API.

If you want to be sure you are getting twain use SetAcquireSource:

http://www.imageen.com/help/TImageEnIO.SetAcquireSource.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

JensFudge

Denmark
8 Posts

Posted - Jul 13 2015 :  03:56:18  Show Profile  Reply
Thanks a lot.
Best regards Jens Fudge

Jens Fudge
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: