CManualAccessor::AddParameterEntry

Adds a parameter entry to the parameter entry structures.

void AddParameterEntry(
   DBORDINAL nOrdinal,
   DBTYPE wType,
   DBLENGTH nColumnSize,
   void* pData,
   void* pLength = NULL,
   void* pStatus = NULL,
   DBPARAMIO eParamIO = DBPARAMIO_INPUT 
) throw ( );

Parameters

See DBBINDING in the OLE DB Programmer's Reference.

  • nOrdinal
    [in] Parameter number.

  • wType
    [in] Data type.

  • nColumnSize
    [in] Column size in bytes.

  • pData
    [in] A pointer to the column data stored in the buffer.

  • pLength
    [in] A pointer to the field length, if required.

  • pStatus
    [in] A pointer to the variable to be bound to the column status, if required.

  • eParamIO
    [in] Specifies whether the parameter with which the binding is associated is an input, input/output, or output parameter.

Remarks

To use this function, you must first call CreateParameterAccessor.

Requirements

Header: atldbcli.h

See Also

Reference

CManualAccessor Class

CManualAccessor::AddBindEntry

Other Resources

CManualAccessor Members

DBViewer sample