我成功打开数据库及记录 想把记录集绑定到记录上
// get a pointer to the record binding interface
if (FAILED(m_pRs->QueryInterface (__uuidof(IADORecordBinding), (LPVOID *) &m_piAdoRecordBinding)))
_com_issue_error(E_NOINTERFACE); (**)此句没执行
//bind the record class to the record set
m_piAdoRecordBinding->BindToRecordset(&m_rsRecSet);
可调试时 发现m_rsRecSet的内容没有赋成数据库中记录的值,也就是没绑上。
这是什么原因 该如何解决。
// get a pointer to the record binding interface
if (FAILED(m_pRs->QueryInterface (__uuidof(IADORecordBinding), (LPVOID *) &m_piAdoRecordBinding)))
_com_issue_error(E_NOINTERFACE); (**)此句没执行
//bind the record class to the record set
m_piAdoRecordBinding->BindToRecordset(&m_rsRecSet);
可调试时 发现m_rsRecSet的内容没有赋成数据库中记录的值,也就是没绑上。
这是什么原因 该如何解决。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货