GetDlgItemText(IDC_EDIT_ACCOUNT, m_name);_bstr_t bstrSQL("select * from accinf where ac_name="+m_name);m_pRecordset->Open(bstrSQL,m_pConnection.GetInterfacePtr(),adOpenDynamic,adLockOptimistic,adCmdText);总是连接有问题
调试欢乐多
szSQl.Format("select * from accinf where ac_name='%s'", m_name);m_pRecordset->Open(_bstr_t(szSQl),m_pConnection.GetInterfacePtr(),adOpenDynamic,adLockOptimistic,adCmdText);