使用CDaoDataBase::Execute()函数执行SQL语句失败,请问为什么?
代码如下:
CDaoDataBase *pDB = ...;
// do something here
CString sSqlStatement;
sSqlStatement.Format("delete from Table where ID=%ld", nID);
pDB->Execute(sSqlStatement);
结果运行到Execute()函数的时候,vc报告access violation。请问有人知道知为什么吗?
多谢。