






















Becuse the SQL CString are used by SQL server that will cloch it and use,if you want to read,not permit;
only copy it to avoid it! This have waste my Half a day to find it!
by using :
updateStr+=" where ±àÂë='"+m_fnbm+"'";
//AfxMessageBox(updateStr);
//logHere("update:"+updateStr);
CString info;
char *ps1=updateStr.GetBuffer(updateStr.GetLength());
char *ps2=info.GetBuffer(updateStr.GetLength());
strcat(ps2,ps1);
// AfxMessageBox(info);
logHere(info);
db2.ExecuteSQL(updateStr);
is ok!
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。