Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DECLARE - DLL with EZTW32.DLL (EZTWAIN)
Message
From
15/12/1998 18:44:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
DECLARE - DLL with EZTW32.DLL (EZTWAIN)
Miscellaneous
Thread ID:
00167876
Message ID:
00167876
Views:
355
Here is what I am using to test with:

------------------------------------------------------------
DECLARE INTEGER TWAIN_IsAvailable IN EZTW32 AS TW_Avail
DECLARE INTEGER TWAIN_EasyVersion IN EZTW32 AS TW_Ver
DECLARE INTEGER TWAIN_SelectImageSource IN EZTW32 AS TW_SelectImageSource
DECLARE INTEGER TWAIN_AcquireNative IN EZTW32 AS TW_AcquireNative
DECLARE INTEGER TWAIN_WriteNativeToFilename IN EZTW32 AS TW_WriteNativeToFilename
DECLARE INTEGER TWAIN_FreeNative IN EZTW32 AS TW_FreeNative

cAvail = TW_Avail()
cVer = TW_Ver()
cImgSrc = TW_SelectImageSource()
cAcqNat = TW_AcquireNative()
cToFile = TW_WriteNativeToFilename()
cFreeNat = TW_FreeNative()
---------------------------------------------------

I was able to figure some of this out from a FPW example, but
am having trouble in making these work in VFP.

The first error I keep getting is: 'EZTWAIN: window handle is invalid'. This error seems to just be more informative than
a real error. But I would still like to get rid of it.

The next error occurs at TW_AcquireNative(): 'Failed to negotiat pixel type. App and source found no values in common.'

I am sure I am missing parameters, but I do not know
what or how they are used. I looked through the 500+ pages of
documentation for EZTwain but am not really understanding how
to implement these perameters.

Does someone know a source where I can find info on using VFP with
EZTW32.DLL? Or has anyone already done this that knows these parameters?
Next
Reply
Map
View

Click here to load this message in the networking platform