[問題] MFC update access database
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
vc6.0---language:MFC(visual c++)
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
db
問題(Question):
a.MFC connection with ODBC or ADO init code
b.Database,RecordSet,table關係(as Code)
餵入的資料(Input):
xxx.mdb
預期的正確結果(Expected Output):
update xxx.mdb one column from UI input in one textbox
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
CDatabase db;
CString sql;
sql="Update RED Set dc=19";
//sql+=this->m_dwCalWt;
db.ExecuteSQL(sql);
//RED is table name
//dc is field name
簡單來講就是update一欄的基本動作
Q:不知上面那錯?xxx.mdb no update
補充說明(Supplement):
MFC open project 從empty開始
因為不太熟
project\database or project\application or MFC AppWizard(exe)
去建構MFC database
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.248.43.145
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1430731654.A.F21.html
推
05/04 18:21, , 1F
05/04 18:21, 1F
→
05/05 08:44, , 2F
05/05 08:44, 2F
→
05/05 09:04, , 3F
05/05 09:04, 3F
→
05/05 11:25, , 4F
05/05 11:25, 4F
→
05/05 11:26, , 5F
05/05 11:26, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章