//该学生已经登录,返回提示信息
memset(sendBuf,0,1024);
strcpy(sendBuf,"The Account has been Logined!");
}
else
{
//查询数据库,验证该学生信息是否正确
论文网http://www.751com.cn/
CString accountSql = "select * from StudentInfo where StuID = '" + m_account + "'";
RECORDSET rs = db.JExecuteWithRecordset(accountSql);
BOOL accountExist = FALSE;
if (rs != NULL)
{
while (!rs->rsEOF)
{
accountExist = TRUE;
rs->MoveNext();
}
}
if (accountExist)
{
CString passwdSql = "select * from StudentInfo where StuID = '" + m_account + "' and Passwd = '" + m_password + "'"; //查询数据库
RECORDSET rs1 = db.JExecuteWithRecordset(passwdSql);
BOOL passwdCorrect = FALSE;
if (rs1 != NULL)
{
while (!rs1->rsEOF)
{
passwdCorrect = TRUE;
rs1->MoveNext();
<< 上一页 [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] ... 下一页 >>
C++的多媒体屏幕广播教学系统设计 第16页下载如图片无法显示或论文不完整,请联系qq752018766