Delphi / DTWAIN Data Types

Top  Previous  Next

The following table shows Delphi data types that correspond to DTWAIN types.

 

DTWAIN Data Type

Delphi Data Type

 

DTWAIN_ARRAY

Integer

DTWAIN_CALLBACK_PROC

Pointer

DTWAIN_BOOL

LongBool

DTWAIN_FLOAT

Double

DTWAIN_FRAME

Integer

DTWAIN_OCRENGINE

Integer

DTWAIN_PDFTEXTELEMENT

Integer

DTWAIN_RANGE

Integer

DTWAIN_SOURCE

Integer

HANDLE

LongInt

LONG

LongInt

DTWAIN_LONG64

Int64

LPCTSTR

PAnsiChar

LPDTWAIN_ARRAY

var LongInt

LPDTWAIN_FLOAT

var Double

LPLONG

var LongInt

LPTSTR

PAnsiChar if using ANSI version of DTWAIN, PChar if using Unicode version of DTWAIN.

LPVOID

Pointer

TWAIN_IDENTITY

Int64

 

For 64-bit applications, the following table shows Delphi 64-bit data types that correspond to DTWAIN types.

 

DTWAIN Data Type

Delphi Data Type

 

DTWAIN_ARRAY

Int64

DTWAIN_CALLBACK_PROC

Pointer

DTWAIN_BOOL

LongBool

DTWAIN_FLOAT

Double

DTWAIN_FRAME

Int64

DTWAIN_OCRENGINE

Int64

DTWAIN_PDFTEXTELEMENT

Integer

DTWAIN_RANGE

Int64

DTWAIN_SOURCE

Int64

HANDLE

Int64

LONG

Int64

DTWAIN_LONG64

Int64

LPCTSTR

PAnsiChar if using ANSI version of DTWAIN, PChar if using Unicode version of DTWAIN

LPDTWAIN_ARRAY

var Int64

LPDTWAIN_FLOAT

var Double

LPLONG

var LongInt

LPTSTR

PAnsiChar

LPVOID

Pointer

TWAIN_IDENTITY

Int64