I am getting the values by getfieldvalue function from access db. I need to save bunch of those values and then do the calculation with those values. What’s the best way ?
Thanks for help. If there is some info missing please let me know. I’ll try to provide.
Thank You again
CRecordset rset(&pdatabase);
if(rset.Open(CRecordset::forwardOnly, selectionStr))
{
while(rset.IsBOF()&&rset.IsEOF())
{
m_Log->Log("Copying Previous Values from Access DB");
rset.GetFieldValue((short)0 ,pname_old);
rset.GetFieldValue((short)1 ,Date_old);
rset.GetFieldValue((short)2 ,Time_old);
rset.GetFieldValue((short)3 ,Y_old));
rset.GetFieldValue((short)4 ,QTime_old);
}
rset.MoveNext();
}
You could use a tool from the stl, like std::vector or std::list to handle your datas while getting them, and treat them after your collection.