Skip to content

Latest commit

 

History

History
70 lines (61 loc) · 1.64 KB

File metadata and controls

70 lines (61 loc) · 1.64 KB
title CAccessor Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
ATL.CAccessor<T>
ATL::CAccessor
CAccessor
ATL::CAccessor<T>
ATL.CAccessor
dev_langs
C++
helpviewer_keywords
CAccessor class
ms.assetid b2ba959f-a686-46f3-8837-176248aef748
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CAccessor Class

Represents one of the accessor types.

Syntax

  
      template < class   
      T  
       >  
class CAccessor : public CAccessorBase, public T  

Parameters

T
The user record class.

Remarks

It is used when a record is statically bound to a data source. The record contains the buffer. This class supports multiple accessors on a rowset.

Use this accessor type when you know the structure and the type of the database.

If your accessor contains fields that point to memory (such as a BSTR or interface) that must be freed, call the member function CAccessorRowset::FreeRecordMemory before the next record is read.

Requirements

Header: atldbcli.h

See Also

OLE DB Consumer Templates
OLE DB Consumer Templates Reference