FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour EzTwain
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
EzTwain
Posted: Sun Apr 24, 2011 06:42 PM
Hi everyone.

I hope someone can answer this one: I'm using EzTwain.dll version 3 to scan images of ID cards. These ids are no larger than 3 by 2. I'd like to use the EzTwain auto-cropping features found on DIB_AutoCrop() of the .dll to get rid of all the wasted spaced and just keep the image. I wrote a short wrapper for the function call to exchange parameters:

Code (fw): Select all Collapse
 HB_FUNC( TW_DIBAUTOCROP ) // hDib
 {
  hb_parni( DIB_AutoCrop( ( HANDLE ) hb_parnl(1) ), 0 ) ;
 }/**/


But when linking I get an unresolved external:


Unresolved external '_DIB_AutoCrop' referenced from tscan.obj


I already imported the .dll into a .lib and I'm linking it. No other .dll function being used is reported as unresolved. I looked into the .lib and I see the function declared and furthermore it is documented on the programmer's manual.

Any ideas?



Reinaldo.
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: EzTwain
Posted: Sun Apr 24, 2011 07:48 PM

Reinaldo

Add before

int __stdcall DIB_AutoCrop( HANDLE, long );

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: EzTwain
Posted: Sun Apr 24, 2011 08:26 PM

Yes. That does it. Thank you, Daniel.

Reinaldo.

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: EzTwain
Posted: Sun Apr 24, 2011 08:48 PM

Now, I keep getting the error message about the expired license. I tried getting a renewal key, but still won't work. I haven't even been able to test for a single day.

I know there are other eztwain users on this forum. Can I get some feedback about the product? How well does it work for you? How do you insert the license key? How easy is it to re-distribute?

Reinaldo.

Continue the discussion