|

楼主 |
发表于 2021-5-3 18:44:32
|
显示全部楼层
这是对应的代码区
本帖最后由 fabushi 于 2021-5-3 18:45 编辑
m_pRes = mysql_store_result(m_pAdody->m_pMysqlConn);//将结果保存在res结构体中
int iTmp=99;
while (m_row = mysql_fetch_row(m_pRes)) {
for (t = 0; t<mysql_num_fields(m_pRes); t++) {
//TRACE("%s ", m_row[t]);
//str.Format(_T("%s"),m_row[t]);
if(iTmp!=iCount)
pClientView->GetListCtrl().InsertItem(iCount,_T(""));
if(t==0)
pClientView->GetListCtrl().SetItemText(iCount,0,m_row[t]);
if(t==1)
pClientView->GetListCtrl().SetItemText(iCount,1,m_row[t]);
if(t==2)
pClientView->GetListCtrl().SetItemText(iCount,2,m_row[t]);
if(t==3)
pClientView->GetListCtrl().SetItemText(iCount,3,m_row[t]);
iTmp=iCount;
}
TRACE(".............\n");
iCount++;
} |
|