I have a problem with CAdodc Object.
CAdodc m_StaffData;
I Want to make same changes in CAdodc::OnWillMoveAdodc. But there's an error. Please Help.
void CStaffDetal::OnWillMoveAdodc1(long adReason, long FAR* adStatus, LPDISPATCH pRecordset)
{_variant_t fname, result;
try {
fname="name"; /
result=m_StaffData.GetRecordset().GetFields).GetItem(fname).GetValue(); //error
this->m_Person_Name=result.bstrVal; //>m_Person_Name - CString obj.
UpdateData(FALSE);
}
catch (_com_error &e)
{GenerateError(e.Error(), e.Description());}
}
Thanks
CAdodc m_StaffData;
I Want to make same changes in CAdodc::OnWillMoveAdodc. But there's an error. Please Help.
void CStaffDetal::OnWillMoveAdodc1(long adReason, long FAR* adStatus, LPDISPATCH pRecordset)
{_variant_t fname, result;
try {
fname="name"; /
result=m_StaffData.GetRecordset().GetFields).GetItem(fname).GetValue(); //error
this->m_Person_Name=result.bstrVal; //>m_Person_Name - CString obj.
UpdateData(FALSE);
}
catch (_com_error &e)
{GenerateError(e.Error(), e.Description());}
}
Thanks