Article View: comp.databases.visual-dbase
Article #16Re: vdbase 5.5 and EZTWAIN
From: J�rgen Feder
Date: Mon, 22 Dec 1997 00:00
Date: Mon, 22 Dec 1997 00:00
32 lines
1445 bytes
1445 bytes
On Sun, 21 Dec 1997 13:33:21 +0100, Ruediger Spindler
<spindler@on-line.de> wrote:
>Has anyone experiences with EZTWAIN.DLL and vdbase and could me give
>some hints
>how to get this working???
Hi Ruediger,
I did not look through your code, but here is a code- snippet which
works for me:
Procedure Scan_OnClick
PARAM oFormHwnd,cFieldId
&&cFieldId contains qualifier (BINARY or OLE)+" "+FieldName
PRIVA TwInt,iResult,FiName
IF TYPE('TWAIN_AcquireNative')<>'FP'
EXTERN CINT TWAIN_AcquireNative(CINT,CINT) EZTWAIN.DLL
ENDIF
EXTERN CINT TWAIN_WriteNativeToFilename(CINT,CSTRING) EZTWAIN.DLL
EXTERN CINT TWAIN_FreeNative(CINT) EZTWAIN.DLL
FiName='TMP.BMP'
TwInt=TWAIN_AcquireNative(oFormHwnd,0)
iResult=TWAIN_WriteNativeToFilename(TwInt,FiName)
iResult=iResult+TWAIN_FreeNative(TwInt)
IF iResult=0
REPL &cFieldId. FROM &FiName
*FORM.IMAGECC.DataSource="FILE "+FiName
ENDIF
RELEASE DLL EZTWAIN.DLL
RETURN
Technical Details
Message-ID:
<349e3128.4994546@news.inet.tele.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<349D0C91.9C60FFAB@on-line.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 105c7d,fa4c561804677629 X-Google-Attributes: gid105c7d,public X-Google-Thread: 1162a5,fa4c561804677629 X-Google-Attributes: gid1162a5,public From: j-feder@post2.tele.dk (J�rgen Feder) Subject: Re: vdbase 5.5 and EZTWAIN Date: 1997/12/22 Message-ID: <349e3128.4994546@news.inet.tele.dk> X-Deja-AN: 309282219 References: <349D0C91.9C60FFAB@on-line.de> Newsgroups: comp.databases.visual-dbase,borland.public.vdbase.programming