Tscan and XHarbour

Tscan and XHarbour

Postby byron.hopp » Thu Jun 28, 2012 6:53 pm

As I mentioned on an earlier post I got a copy of TScan which seems to utilize the paid for version of the EzTwain from DosAdi. It seems that most people use the free version. Can someone direct me to the location of the Free software from DosAdi. Are there many versions of TScan out there. Which specific prg do I need, what LIB do I need to link, and which DLL's do I need in the app directory. Thanks in advance. It worked great until the licensed ran out.

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA


Re: Tscan and XHarbour

Postby byron.hopp » Thu Jun 28, 2012 10:22 pm

I have downloaded that EzTw32.dll, which version of TScan.prg should I be using. My version utilized a Lib file as well EzTwain3.lib which is linked in with xharbour.
I must have some different version. I would much rather use your way. Can you send me the TScan.prg, are there any methods in my code that you do not recognize (oTwain) ?
Thanks,

Here is my spaghetti code...

Function ScanArDoc( oBrowse,nAr_SeqNo )
Local cFile := DtoS( ArRcv->Dep_Date ) + "_" + DtoS( ArRcv->Doc_Date ) + "_" + AllTrim( ArRcv->Company ) + "_" + AmountInFIle( ArRcv->Amount ) + "_" + PadL( ArRcv->AR_SeqNo,5,"0" ) + ".Bmp"
Local oTwain := nil
Local cFileName := SetUpArDirectories( cFile )
If MsgYesNo( "Load Scanner with document.","Yes to continue...")
CursorWait()
SysRefresh()
oTwain := TScan32():New( cFileName )
oTwain:SetRes( 100 ) // 100 Dpi
oTwain:SetHide( .t. ) // Show UI
oTwain:DigiToFile()
oTwain:End()

ArRcv->(RecLock())
ArRcv->Doc_Name := cFile
ArRcv->(DbCommit())
ArRcv->(DbUnlock())

oBrowse:Refresh()
CursorArrow()
SysRefresh()
Endif
Return nil
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Tscan and XHarbour

Postby byron.hopp » Fri Jul 06, 2012 8:04 pm

EMG,

If I add Tscan.obj to my link script and only have EzTw32.dll the the directory I get the following errors listed below.
Is it possible that I either need a Lib file to link in with the obj, or have the wrong obj (my Tscan.prg is not correct).
Any chance you could send me the correct tscan.prg, I must be finding the incorrect one.

Thanks,

Byron ...

Errors below:


xLINK: error: Unresolved external symbol '_TWAIN_Acquire'.
xLINK: error: Unresolved external symbol '_TWAIN_FreeNative'.
xLINK: error: Unresolved external symbol '_TWAIN_SelectImageSource'.
xLINK: error: Unresolved external symbol '_TWAIN_AcquireNative'.
xLINK: error: Unresolved external symbol '_TWAIN_AcquireToClipboard'.
xLINK: error: Unresolved external symbol '_TWAIN_AcquireMemory'.
xLINK: error: Unresolved external symbol '_TWAIN_AcquireToFilename'.
xLINK: error: Unresolved external symbol '_TWAIN_AcquireFile'.
xLINK: error: Unresolved external symbol '_TWAIN_IsAvailable'.
xLINK: error: Unresolved external symbol '_TWAIN_EasyVersion'.
xLINK: error: Unresolved external symbol '_TWAIN_State'.
xLINK: error: Unresolved external symbol '_TWAIN_SourceName'.
xLINK: error: Unresolved external symbol '_TWAIN_GetSourceName'.
xLINK: error: Unresolved external symbol '_DIB_WriteToJpeg'.
xLINK: error: Unresolved external symbol '_DIB_WriteToBmp'.
xLINK: error: Unresolved external symbol '_TWAIN_IsJpegAvailable'.
xLINK: error: Unresolved external symbol '_TWAIN_SetSaveFormat'.
xLINK: error: Unresolved external symbol '_TWAIN_GetSaveFormat'.
xLINK: error: Unresolved external symbol '_TWAIN_SetJpegQuality'.
xLINK: error: Unresolved external symbol '_TWAIN_GetJpegQuality'.
xLINK: error: Unresolved external symbol '_TWAIN_WriteNativeToFilename'.
xLINK: error: Unresolved external symbol '_TWAIN_LoadNativeFromFilename'.
xLINK: error: Unresolved external symbol '_TWAIN_SetMultiTransfer'.
xLINK: error: Unresolved external symbol '_TWAIN_GetMultiTransfer'.
xLINK: error: Unresolved external symbol '_TWAIN_SetHideUI'.
xLINK: error: Unresolved external symbol '_TWAIN_GetHideUI'.
xLINK: error: Unresolved external symbol '_TWAIN_DisableParent'.
xLINK: error: Unresolved external symbol '_TWAIN_GetDisableParent'.
xLINK: error: Unresolved external symbol '_TWAIN_RegisterApp'.
xLINK: error: Unresolved external symbol '_TWAIN_SetAppTitle'.
xLINK: error: Unresolved external symbol '_TWAIN_LoadSourceManager'.
xLINK: error: Unresolved external symbol '_TWAIN_OpenSourceManager'.
xLINK: error: Unresolved external symbol '_TWAIN_OpenDefaultSource'.
xLINK: error: Unresolved external symbol '_TWAIN_GetSourceList'.
xLINK: error: Unresolved external symbol '_TWAIN_GetNextSourceName'.
xLINK: error: Unresolved external symbol '_TWAIN_GetDefaultSourceName'.
xLINK: error: Unresolved external symbol '_TWAIN_OpenSource'.
xLINK: error: Unresolved external symbol '_TWAIN_EnableSource'.
xLINK: error: Unresolved external symbol '_TWAIN_DisableSource'.
xLINK: error: Unresolved external symbol '_TWAIN_CloseSource'.
xLINK: error: Unresolved external symbol '_TWAIN_CloseSourceManager'.
xLINK: error: Unresolved external symbol '_TWAIN_UnloadSourceManager'.
xLINK: error: Unresolved external symbol '_TWAIN_GetCurrentUnits'.
xLINK: error: Unresolved external symbol '_TWAIN_SetCurrentUnits'.
xLINK: error: Unresolved external symbol '_TWAIN_GetBitDepth'.
xLINK: error: Unresolved external symbol '_TWAIN_SetBitDepth'.
xLINK: error: Unresolved external symbol '_TWAIN_GetPixelType'.
xLINK: error: Unresolved external symbol '_TWAIN_SetCurrentPixelType'.
xLINK: error: Unresolved external symbol '_TWAIN_GetCurrentResolution'.
xLINK: error: Unresolved external symbol '_TWAIN_GetYResolution'.
xLINK: error: Unresolved external symbol '_TWAIN_SetCurrentResolution'.
xLINK: error: Unresolved external symbol '_TWAIN_SetXResolution'.
xLINK: error: Unresolved external symbol '_TWAIN_SetYResolution'.
xLINK: error: Unresolved external symbol '_TWAIN_SetContrast'.
xLINK: error: Unresolved external symbol '_TWAIN_SetBrightness'.
xLINK: error: Unresolved external symbol '_TWAIN_SetThreshold'.
xLINK: error: Unresolved external symbol '_TWAIN_GetCurrentThreshold'.
xLINK: error: Unresolved external symbol '_TWAIN_SetXferMech'.
xLINK: error: Unresolved external symbol '_TWAIN_XferMech'.
xLINK: error: Unresolved external symbol '_TWAIN_SupportsFileXfer'.
xLINK: error: Unresolved external symbol '_TWAIN_SetPaperSize'.
xLINK: error: Unresolved external symbol '_TWAIN_HasFeeder'.
xLINK: error: Unresolved external symbol '_TWAIN_IsFeederSelected'.
xLINK: error: Unresolved external symbol '_TWAIN_SelectFeeder'.
xLINK: error: Unresolved external symbol '_TWAIN_IsAutoFeedOn'.
xLINK: error: Unresolved external symbol '_TWAIN_SetAutoFeed'.
xLINK: error: Unresolved external symbol '_TWAIN_IsFeederLoaded'.
xLINK: error: Unresolved external symbol '_TWAIN_GetDuplexSupport'.
xLINK: error: Unresolved external symbol '_TWAIN_EnableDuplex'.
xLINK: error: Unresolved external symbol '_TWAIN_IsDuplexEnabled'.
xLINK: error: Unresolved external symbol '_TWAIN_HasControllableUI'.
xLINK: error: Unresolved external symbol '_TWAIN_SetIndicators'.
xLINK: error: Unresolved external symbol '_TWAIN_Compression'.
xLINK: error: Unresolved external symbol '_TWAIN_SetCompression'.
xLINK: error: Unresolved external symbol '_TWAIN_Tiled'.
xLINK: error: Unresolved external symbol '_TWAIN_SetTiled'.
xLINK: error: Unresolved external symbol '_TWAIN_PlanarChunky'.
xLINK: error: Unresolved external symbol '_TWAIN_SetPlanarChunky'.
xLINK: error: Unresolved external symbol '_TWAIN_PixelFlavor'.
xLINK: error: Unresolved external symbol '_TWAIN_SetPixelFlavor'.
xLINK: error: Unresolved external symbol '_TWAIN_SetLightPath'.
xLINK: error: Unresolved external symbol '_TWAIN_SetAutoBright'.
xLINK: error: Unresolved external symbol '_TWAIN_SetGamma'.
xLINK: error: Unresolved external symbol '_TWAIN_SetShadow'.
xLINK: error: Unresolved external symbol '_TWAIN_SetHighlight'.
xLINK: error: Unresolved external symbol '_TWAIN_SetImageLayout'.
xLINK: error: Unresolved external symbol '_TWAIN_ResetImageLayout'.
xLINK: error: Unresolved external symbol '_TWAIN_GetImageLayout'.
xLINK: error: Unresolved external symbol '_TWAIN_GetDefaultImageLayout'.
xLINK: error: Unresolved external symbol '_DIB_GetFromClipboard'.
xLINK: fatal error: 90 unresolved external(s).
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Tscan and XHarbour

Postby Enrico Maria Giordano » Fri Jul 06, 2012 8:47 pm

Sorry, I don't use nor have Tscan.obj.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Tscan and XHarbour

Postby reinaldocrespo » Sat Jul 07, 2012 10:35 pm

Byron; The linking errors you list seem to suggest that you are not linking twain.lib with your app.


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

Re: Tscan and XHarbour

Postby byron.hopp » Sun Jul 08, 2012 6:20 pm

Thanks,

Were do I find this twain.lib. What time and date stamp should I be looking for?

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Tscan and XHarbour

Postby reinaldocrespo » Sun Jul 08, 2012 6:21 pm

Use Tlib to export from .dll.


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: Google [Bot] and 110 guests