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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 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

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
JensFudge Posted - Jul 10 2015 : 03:01:07
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
2   L A T E S T    R E P L I E S    (Newest First)
JensFudge Posted - Jul 13 2015 : 03:56:18
Thanks a lot.
Best regards Jens Fudge

Jens Fudge
xequte Posted - Jul 11 2015 : 03:44:15
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