注册 登录
编程论坛 VC++/MFC

参数错误,期待是1怎么回事啊?求助

红尘眷客 发布于 2011-12-17 18:34, 694 次点击
nYear=m_UserFind.m_StartTime.GetYear();
        nMonth=m_UserFind.m_StartTime.GetMonth();
        nDay=m_UserFind.m_StartTime.GetDay();
        CTime m_Time(nYear,nMonth,nDay);
        strSql.Format("select * from user where starttime=m_Time");
        m_UserSet.Open(AFX_DB_USE_DEFAULT_TYPE,strSql);
if(m_UserSet.GetRecordCount()==0)
        {
            AfxMessageBox("没有找到您所要查询的用户!");
            m_UserSet.Close();
        }
        else
        {
            ListShow();
            TextShow();
        }
  这是按日期查询的代码,按日期查询的时候提示参数错误,期待是1,这是什么意思 啊,我初学者搞不懂,望高手指点指点
1 回复
#2
BianChengNan2012-01-18 17:05
哥们,请把问题描述的再细一点,比如有问题的代码在哪一行。。。
1