以下程序在VS2005中运行为什么会出现错误(最后的红字)?
CDlgpassword dlgpass;if(dlgpass.DoModal()==IDOK)
{
if(strcmp(dlgpass.m_password, "12a"))
{
AfxMessageBox("口令错误,确定后将退出程序.",MB_OK|MB_ICONERROR);
return FALSE;
}
}
else
return FALSE;
1>e:\新建文件夹\21\21\21.cpp(65) : error C2664: 'strcmp' : cannot convert parameter 1 from 'CEdit' to 'const char *'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called