[問題] MFC update database
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
想請問為何只有更新到一列的欄資料
餵入的資料(Input):
表單的edittext
預期的正確結果(Expected Output):
整欄全部update
錯誤結果(Wrong Output):
只有更新到一列的欄資料
程式碼(Code):(請善用置底文網頁, 記得排版)
XXXView::OnUpdate()
{
CString cs,msg;
double d;
for(int i=0;m_pSet->GetRecordCount();i++)
{
m_pSet->Edit();
d=m_pSet->m_dwCalWt;
GetDlgItem(IDC_dwCalWT)->GetWindowText(cs);
d=atof((LPCTSTR)cs);
m_pSet->MoveNext();
UpdateData();
}
MessageBox(cs);
m_pSet->Update();
MessageBox("更新完成!!");
}
補充說明(Supplement):
這是我第二篇詢問MFC database Update
請各位大大指教
thanks
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.229.111.219
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1431661132.A.64D.html
→
05/15 11:40, , 1F
05/15 11:40, 1F
→
05/15 11:42, , 2F
05/15 11:42, 2F
→
05/15 11:43, , 3F
05/15 11:43, 3F
→
05/15 11:44, , 4F
05/15 11:44, 4F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章