strItem是CString类型的。
strItem.Format("%d",vNote.lVal);
strSql="DELETE * FROM NodeTree WHERE ParentID="+strItem+" or id="+strItem;以上这两句中,"+strItem+" 前后两个加号是什么意思?后面的+strItem就只前面有加号。
还有,为什么最后的+strItem在整个句子的“ ”号外呢?大家帮帮忙!谢谢!
strItem.Format("%d",vNote.lVal);
strSql="DELETE * FROM NodeTree WHERE ParentID="+strItem+" or id="+strItem;以上这两句中,"+strItem+" 前后两个加号是什么意思?后面的+strItem就只前面有加号。
还有,为什么最后的+strItem在整个句子的“ ”号外呢?大家帮帮忙!谢谢!
解决方案 »
- BufferOut.Pixels[][]输出的是什么?
- 调用OnFileOpen函数出错
- VC 下数据库操作的疑问
- 如何用vc(C,加WinAPI,加XML)编写用户界面Skin?
- directx9初级问题:如何生成一个圆柱和部分圆球?(200分)
- *** <真的是个难题> 子窗口需要取得回车建消息, 但是按回车, 对话框就消失了 ***
- DLL输出重定位之后的编译警告,快来看看!!!
- 100分!高手请进!关于doc/view/CMainframe 和 及CRichEditCtrl小问题
- 我已经学完了C++请问怎摸开始学VC++,用那些书好一点
- 高分请教---对《深入浅出MFC》中Command Routing的困惑
- 用smtp发送邮件时,要求加入身份验证(像163就是的)应该怎样加入身份验证!
- 请问如何把放对话框上的工具条隐藏?
CString str1 = "DELETE * FROM NodeTree WHERE ParentID=";
CString str2 = strItem;
CString str3 = " or id=";CString strSql = str1+str2+str3+str2