AddBindings

HRESULT AddBinding(
const DBBINDING& dbBinding)
HRESULT AddBinding(
ULONG iOrdinal, 
DBTYPE wType, 
ULONG cbMaxLen, 
ULONG obValue, 
ULONG obLength = UNUSED_OFFSET, 
ULONG obStatus = UNUSED_OFFSET, 
BYTE bPrecision = 0, 
BYTE bScale = 0)

Parameters

dbBinding

reference to the DBBINDING structure to copy.

iOrdinal

Column ordinal.

wType

DBTYPE to which to convert the column data.

cbMaxLen

Maximum length of the data member is the user buffer.

obValue

Offset to start of the data member in the user buffer.

obStatus = UNUSED_OFFSET

Offset to the DBSTATUS member in the user buffer.

obLength = UNUSED_OFFSET

Offset to the length member in the user buffer.

bPrecision =0

Precision to use when converting to DBTYPE_NUMERIC or DBTYPE_DECIMAL.

bScale

=0 Scale to use when converting to DBTYPE_NUMERIC or DBTYPE_DECIMAL.

Comments

Adds an entry to the array using the exact copy of the given DBBINDING structure. The original structure is left intact. The longer form of AddBinding adds an entry to the array using the given parameters to set up the entry.

See the implementation of the InitBinding helper function for more details about the interpretation of this method's parameters.