代码:
CString CommandText = "INSERT INTO aver(prefix,date,weight,persugar,sugar) VALUES('gg','2007-2-13',1,0.32,0.32)";
_variant_t RecordsAffected;
try
{
m_pRecordset = theApp.m_pConnection->Execute(_bstr_t(CommandText),&RecordsAffected,adCmdText);
}
catch (_com_error *e)
{
AfxMessageBox(e->ErrorMessage());
}用PutCollect插入在Update时又出错!
调试:
在m_pRecordset = theApp.m_pConnection->Execute(_bstr_t(CommandText),&RecordsAffected,adCmdText);
报如下错误:
Unhandled exception in Sugar.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
CString CommandText = "INSERT INTO aver(prefix,date,weight,persugar,sugar) VALUES('gg','2007-2-13',1,0.32,0.32)";
_variant_t RecordsAffected;
try
{
m_pRecordset = theApp.m_pConnection->Execute(_bstr_t(CommandText),&RecordsAffected,adCmdText);
}
catch (_com_error *e)
{
AfxMessageBox(e->ErrorMessage());
}用PutCollect插入在Update时又出错!
调试:
在m_pRecordset = theApp.m_pConnection->Execute(_bstr_t(CommandText),&RecordsAffected,adCmdText);
报如下错误:
Unhandled exception in Sugar.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
是否 有 类型 和 数据库里面的类型 不 匹配.