IF TWAIN_ISAVAILABLE() = 0
? "Twain not available"
RETURN NIL
ENDIF
IF TWAIN_ACQUIRETOFILENAME( 0, cBmp ) != 0
? "Error while scanning"
RETURN NIL
ENDIF
IF !SAVEIMG( cBmp, cJpg, 2, 80 )
? "Error while converting to BMP"
RETURN NIL
ENDIF
DLL STATIC FUNCTION TWAIN_ACQUIRETOFILENAME( hWnd AS LONG, cFile AS LPSTR ) AS LONG;
PASCAL FROM "TWAIN_AcquireToFilename" LIB "eztw32.dll"
DLL STATIC FUNCTION TWAIN_ISAVAILABLE() AS LONG;
PASCAL FROM "TWAIN_IsAvailable" LIB "eztw32.dll"
byron.hopp wrote:Yes I made a quick attempt, but I could not get it to link.
Where do I find SaveImg(), is this Harbour, Fivewin, or from the DLL.
If it is from the DLL do I need to create a declare statement for it as well.
My xHarbour is kind of old: (like me)
xHarbour Compiler build 0.99.61 (SimpLex)
My FiveWin:
7.01
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 119 guests