ADO 读oralce blob字段出错 一读就报 未指定的错误哪位大虾指点下,项目很紧我都想死了,网上查了一个多星期都没有找到解决的方法 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 什么错误,贴出读写oralce blob字段的代码 用如下代码把你的代码包起来try { //你的代码 } catch(_com_error &e) { AfxMessageBox(e.Description()); } 看看能否捕获异常?? try db.pRec->Open((_bstr_t)hsql, db.pConn.GetInterfacePtr(), //获得库连库的IDispatch指针 adOpenDynamic, adLockOptimistic, adCmdText ); AfxMessageBox("db"); _variant_t cstr; CString str; while(!db.pRec->adoEOF){ AfxMessageBox("0"); cstr=db.pRec->GetCollect("cid"); str = (char*)_bstr_t(cstr); msql+=str; AfxMessageBox("1"); cstr=db.pRec->GetCollect("cdata"); locoMess=(char*)_bstr_t(cstr); AfxMessageBox("2"); DataBase db1; db1.InitInstance(); db1.insertSql(msql); AfxMessageBox("3"); AfxMessageBox(msql); db.pRec->MoveNext(); } }catch(_com_error &e){ AfxMessageBox(e.ErrorMessage()); } HSQL里,select command_id as cid,command_data as cdata from emd_message where STATUS_FLAG =0command_data 为blob cdata是blob字段? 你怎么这样读..参考如下文章:http://www.vckbase.com/document/viewdoc/?id=719http://www.vckbase.com/document/viewdoc/?id=252 急急急 哪位路过的大神帮帮忙! windows可执行文件加载问题 m_pRecordset遍历记录集之后,m_pRecordset->MoveFirst()为什么会出错 日期为2007-04-12,2007-04-15,2007-07-22怎么写sql统计整个月的数量? 如何去掉通用页? VC中怎样设置串口一次接收数据〉8个字节?谢谢 这里有没有做扫描引擎的,交流一下 Edit问题 VC中引入Word9.olb的库后,有的函数调用为什么出问题?? 这儿有谁懂视频流吗?我想把采集的图像以视频流的格式传输,应该怎么办? 弱弱的问个问题:现在NetBIOS应用广泛吗? 鼠标停留显示提示信息!
try
{
//你的代码
}
catch(_com_error &e)
{
AfxMessageBox(e.Description());
}
看看能否捕获异常??
db.pRec->Open((_bstr_t)hsql,
db.pConn.GetInterfacePtr(), //获得库连库的IDispatch指针
adOpenDynamic,
adLockOptimistic,
adCmdText
);
AfxMessageBox("db");
_variant_t cstr;
CString str;
while(!db.pRec->adoEOF){
AfxMessageBox("0");
cstr=db.pRec->GetCollect("cid");
str = (char*)_bstr_t(cstr);
msql+=str;
AfxMessageBox("1");
cstr=db.pRec->GetCollect("cdata");
locoMess=(char*)_bstr_t(cstr);
AfxMessageBox("2");
DataBase db1;
db1.InitInstance();
db1.insertSql(msql);
AfxMessageBox("3");
AfxMessageBox(msql);
db.pRec->MoveNext();
}
}catch(_com_error &e){
AfxMessageBox(e.ErrorMessage());
}
command_data 为blob
http://www.vckbase.com/document/viewdoc/?id=719
http://www.vckbase.com/document/viewdoc/?id=252