毕业设计求救!!!“.exe遇到问题需要关闭”
我把程序和数据库打包上传,275KB,下载地址: http://www.
还原数据库(SQLServer),编译,通过,运行,用户名和密码都是1,点击"雇员"->"员工管理",或者“会员”->“会员管理”就会出现错误
CDlgVIP::OnRefreshData()中下面这几句好像有问题
_variant_t vEmpNo = pRst->Fields->GetItem("EmpNo")->Value;
_variant_t vEmpName= pRst->Fields->GetItem(long(1))->Value;
_variant_t vEmpSex = pRst->Fields->GetItem(long(2))->Value;
_variant_t vEmpAge = pRst->Fields->GetItem(long(3))->Value;
_variant_t vEmpID = pRst->Fields->GetItem(long(4))->Value;
_variant_t vEmpTel = pRst->Fields->GetItem(long(5))->Value;
m_EmpNo = vEmpNo.bstrVal; //取出记录的值
m_EmpName = vEmpName.bstrVal;
m_EmpAge = vEmpAge.bstrVal;
m_EmpID = vEmpID.bstrVal;
m_EmpTel = vEmpTel.bstrVal;
m_EmpSex = vEmpSex.bstrVal;
AfxMessageBox("hELLO");//无法执行到这里,问题在这之前!!!!!!!!!!!!