本帖最后由 lovegame3 于 2012-11-23 10:27:54 编辑

解决方案 »

  1.   


                CString sql="select * from 表名 where 条件";
                CString strText;
                m_pRs=theApp.m_pCon->Execute((_bstr_t)sql,NULL,adCmdText);
                while(!m_pRs->adoEOF)
                {
                    CString jl=(char*)(_bstr_t)m_pRs->GetCollect("列名");
                    strText = strText + jl;
                    //SetDlgItemText(IDC_STATIC,jl);
                                    ………………
                    m_pRs->MoveNext();   
                }
                SetDlgItemText(IDC_STATIC,strText);