>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?
I knoiw absolutely nothing about EZTWAIN, but you've declared no parameters of any types for any of the functions. Do you have sample C prototypes for the .DLL calls, or VB examples of their declarations?