没有错误就奇怪了
这样修改!
//更新
pRs->AddNew();
for(int x = 0; x <pRs->GetFieldCount(); x++)
{
CString strTemp = m_pGrid->GetItemText(curRow,x);
CDaoFieldInfo fieldinfo;
pRs->GetFieldInfo(x, fieldinfo); strcpy(szValue, strTemp.GetBuffer(strTemp.GetLength()));
strTemp.ReleaseBuffer();
pRs->SetFieldValue(x,szValue);
}
try
{
pRs->Update();
}
这样修改!
//更新
pRs->AddNew();
for(int x = 0; x <pRs->GetFieldCount(); x++)
{
CString strTemp = m_pGrid->GetItemText(curRow,x);
CDaoFieldInfo fieldinfo;
pRs->GetFieldInfo(x, fieldinfo); strcpy(szValue, strTemp.GetBuffer(strTemp.GetLength()));
strTemp.ReleaseBuffer();
pRs->SetFieldValue(x,szValue);
}
try
{
pRs->Update();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货