void InitBinding(
DBBINDING& dbBinding,
ULONG iOrdinal,
DBTYPE wType,
ULONG cbMaxLen,
ULONG obValue,
ULONG obLength /*= UNUSED_OFFSET*/,
ULONG obStatus /*= UNUSED_OFFSET */,
BYTE bPrecision /*=0*/,
BYTE bScale /*=0*/)
Parameters
dbBinding
The structure to initialize for binding.
iOrdinal
The ordinal of the column or parameter to which the binding applies.
wType
The indicator of the data type of the value part of the buffer.
CbMaxLen
The length in bytes of the consumer’s data structure allocated for the data value.
obValue
The offset in bytes in the consumer’s buffer to the value part.
obLength
The offset in bytes in the consumer’s buffer to the length part.
obStatus
The offset in bytes in the consumer’s buffer to the status part.
bPrecision
The maximum precision to use when getting data and wType is DBTYPE_NUMERIC.
bScale
The scale to use when getting data, and wType is DBTYPE_NUMERIC or DBTYPE_DECIMAL.
Comments
Initializes a DBBINDING structure for accessing rows. For more information, see the OLE DB Programmer's Reference for details about the DBBINDING structure.