EzTwain

EzTwain

Postby reinaldocrespo » Sun Apr 24, 2011 6: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: Select all  Expand view
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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: EzTwain

Postby Daniel Garcia-Gil » Sun Apr 24, 2011 7:48 pm

Reinaldo

Add before

int __stdcall DIB_AutoCrop( HANDLE, long );
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: EzTwain

Postby reinaldocrespo » Sun Apr 24, 2011 8:26 pm

Yes. That does it. Thank you, Daniel.

Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: EzTwain

Postby reinaldocrespo » Sun Apr 24, 2011 8: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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 26 guests