Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DECLARE - DLL with EZTW32.DLL (EZTWAIN)
Message
De
15/12/1998 18:48:36
 
 
À
15/12/1998 18:44:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00167876
Message ID:
00167877
Vues:
28
>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?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform