Share via


CSimpleRow Class

 

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 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