// CursorBase.cpp : implementation file
|
//
|
|
#include "stdafx.h"
|
#include "mbamdb.h"
|
#include "CursorBase.h"
|
|
|
// CCursorBase
|
|
CCursorBase::CCursorBase()
|
{
|
m_nRowType = ROWTYPE_NONE;
|
}
|
|
CCursorBase::~CCursorBase()
|
{
|
}
|
|
|
// CCursorBase member functions
|
BOOL CCursorBase::GetItemValue( CString strName, CString &strValue )
|
{
|
strValue = _T( "" );
|
if ( strName.IsEmpty() )
|
return false;
|
|
COleVariant var;
|
|
if ( !GetItemValue( strName, var ) )
|
return false;
|
|
var.ChangeType( VT_BSTR );
|
strValue.Format(_T("%s"), (LPCTSTR)(_bstr_t)var.bstrVal);
|
return true;
|
}
|