上次您说的GetDlgItem(IDC_STATIC)->SetWindowText(sql)这句怎么用的?
ADOm_Ado;m_Ado.OnInitADOConn();CStringsql="selectsum(平方)from施一";m_Ado.m_pRecordset=m_...
ADO m_Ado;
m_Ado.OnInitADOConn();
CString sql="select sum(平方) from 施一";
m_Ado.m_pRecordset=m_Ado.OpenRecordset(sql);
UpdateData(FALSE);
GetDlgItem(IDC_STATIC_W)->SetWindowText(sql);
m_Ado.CloseRecordset();
m_Ado.CloseConn(); 展开
m_Ado.OnInitADOConn();
CString sql="select sum(平方) from 施一";
m_Ado.m_pRecordset=m_Ado.OpenRecordset(sql);
UpdateData(FALSE);
GetDlgItem(IDC_STATIC_W)->SetWindowText(sql);
m_Ado.CloseRecordset();
m_Ado.CloseConn(); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询