_variant_t vOldPsw;//get the password from the db by ado
LPCTSTR sOldPsw;
sOldPsw =(_bstr_t)vOldPsw;
UpdateDate(TRUE)//m_sOldPsw get the a value from an edit control
if(m_sOldPsw.Compare(sOldPsw)!=0)
AfxMessageBox("密码有误");
大侠请看哪里出错了,它老是提示密码有误,实际是对的,怎样比较这两个字符串.谢谢!!
LPCTSTR sOldPsw;
sOldPsw =(_bstr_t)vOldPsw;
UpdateDate(TRUE)//m_sOldPsw get the a value from an edit control
if(m_sOldPsw.Compare(sOldPsw)!=0)
AfxMessageBox("密码有误");
大侠请看哪里出错了,它老是提示密码有误,实际是对的,怎样比较这两个字符串.谢谢!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货