Skip to content

Latest commit

 

History

History
75 lines (65 loc) · 2.27 KB

File metadata and controls

75 lines (65 loc) · 2.27 KB
title CSimpleRow 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
CSimpleRow
ATL::CSimpleRow
ATL.CSimpleRow
dev_langs
C++
helpviewer_keywords
CSimpleRow class
ms.assetid 06d9621d-60cc-4508-8b0c-528d1b1a809b
caps.latest.revision 9
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

CSimpleRow Class

Provides a default implementation for the row handle, which is used in the IRowsetImpl class.

Syntax

class CSimpleRow  

Members

Methods

AddRefRow Adds a reference count to an existing row handle.
Compare Compares two rows to see if they refer to the same row instance.
CSimpleRow The constructor.
ReleaseRow Releases rows.

Data Members

m_dwRef Reference count to an existing row handle.
m_iRowset An index to the rowset representing the cursor.

Remarks

A row handle is logically a unique tag for a result row. IRowsetImpl creates a new CSimpleRow for every row requested in IRowsetImpl::GetNextRows. CSimpleRow can also be replaced with your own implementation of the row handle, as it is a default template argument to IRowsetImpl. The only requirement to replacing this class is to have the replacement class provide a constructor that accepts a single parameter of type LONG.

Requirements

Header: atldb.h

See Also

OLE DB Provider Templates
OLE DB Provider Template Architecture
IRowsetImpl Class