DTWAIN Quick Start

Top  Previous  Next

The easiest way to start using DTWAIN is to do just a few of the DTWAIN functions, and see how the application behaves.

 

Right away, you can start with the easiest sample program, and that is to acquire a single page to a BMP file from your TWAIN device.

 

The most elementary sequence is the following:

 

Check if TWAIN is installed (DTWAIN_IsTwainAvailable)

Initialize the DTWAIN DLL Interface

 

The first item involves calling DTWAIN_IsTwainAvailable.  This function will let you know right away if the proper TWAIN DLL's are installed on the system.  If the system does have TWAIN installed, your application would proceed with the rest of the sequence desribed above.

 

For a more advanced DTWAIN application, the following can be done:

 

Check if TWAIN is installed (DTWAIN_IsTwainAvailable)

Initialize the DTWAIN DLL Interface

 

The following is a full code example of most of these steps:

Example

 

For other advanced programming options such as automatic document feeder control, duplex scanning, job control, etc.  the Advanced Programming section will demonstrate these features of DTWAIN.