Share via


CManualAccessor::CreateAccessor

 

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::CreateAccessor.

Allocates memory for the column bind structures and initializes the column data members.

Syntax

  
      HRESULT CreateAccessor(   
   int nBindEntries,   
   void* pBuffer,   
   DBLENGTH nBufferSize    
) throw( );  

Parameters

nBindEntries
[in] Number of columns. This number should match the number of calls to the CManualAccessor::AddBindEntry function.

pBuffer
[in] A pointer to the buffer where the output columns are stored.

nBufferSize
[in] The size of the buffer in bytes.

Return Value

One of the standard HRESULT values.

Remarks

Call this function before you call the CManualAccessor::AddBindEntry function.

Requirements

Header: atldbcli.h

See Also

CManualAccessor Class
DBViewer sample