다음을 통해 공유


CManualAccessor::AddParameterEntry

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CManualAccessor::AddParameterEntry.

Adds a parameter entry to the parameter entry structures.

Syntax

  
      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

CManualAccessor Class
CManualAccessor::AddBindEntry
DBViewer sample