Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.19 KB

caccessor-class.md

File metadata and controls

40 lines (27 loc) · 1.19 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CAccessor Class
CAccessor Class
11/04/2016
ATL.CAccessor<T>
ATL::CAccessor
CAccessor
ATL::CAccessor<T>
ATL.CAccessor
CAccessor class
b2ba959f-a686-46f3-8837-176248aef748

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