Reputation: 33
I have iBall A3 image scanner, and I want to scan an image using a VB6.0 application.
Does anybody know about this type of application?
Upvotes: 1
Views: 4833
Reputation: 13267
VB6 doesn't need a "native scanner library" because modern versions of Windows have one built in.
TWAIN is still used but is very long in the tooth and many modern scanners don't come with TWAIN drivers anyway.
Take a look at VB6 - WIA Scanning Demo.
Upvotes: 2
Reputation: 4271
Because VB6 does not include a native scanner library, some sort of third-party DLL is required for scanner access. A popular choice is the free, public-domain EZTW32 library. There are others, search for TWAIN, which is the name of the underlaying Windows API that provides access to the scanner driver.
EZTW32 library provides many ways of interacting with the scanner, the following is an example on how to import the library functions:
Private Declare Function TWAIN_IsAvailable Lib "EZTW32.dll" () As Long
Private Declare Function TWAIN_SelectImageSource Lib "EZTW32.dll" (ByVal hwndApp As Long) As Long
Private Declare Function TWAIN_AcquireToFilename Lib "EZTW32.dll" (ByVal hwndApp As Long, _
ByVal sFile As String) As Long
I recommend you to follow the instructions on their site to fit your needs. This post has more examples and info.
Upvotes: 2