DTWAIN_RangeGetValueFloatString

DTWAIN_RangeGetValueFloatStringA

DTWAIN_RangeGetValueFloatStringW

Top  Previous  Next

The DTWAIN_RangeGetValueFloatString function gets either the low, high, step, default, or current values in the DTWAIN_RANGE.

 

DTWAIN_BOOL DTWAIN_RangeGetValueFloatString (

DTWAIN_RANGE

Range,

LONG

WhichValue,

LPTSTR

lpValue );

 

Parameters

Range

A valid DTWAIN_RANGE type.

 

WhichValue

Value to retrieve.

 

lpValue

Address of where retrieved value will be copied.

 

 

Return Values

TRUE if successful, FALSE otherwise.  If the function returns FALSE, call DTWAIN_GetLastError() to get extended information.

 

Character specific versions

ANSI version:

DTWAIN_RangeGetValueFloatStringA

Unicode version:

DTWAIN_RangeGetValueFloatStringW

 

Comments

The DTWAIN_RangeGetValueFloatString wdoes the same thing as DTWAIN_RangeGetValueFloat, with the difference being that the floatinng point value is converted to a string.  The string is copied to lpValue.


This function can be used by computer languages that do not handle 64-bit IEEE parameters correctly.    The string buffer lpValue (if it is not NULL) must be sized to at least 255 characters.


TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

DTWAIN Range Functions