前进的道路不是一帆风顺的,要随时迎接挑战,敢于战胜困难!

坚持一下,找人聊聊天,释放一些压力!

 

vc6.0读取系统时间并与自己通过其他方式获取的时间比较

    CTime time=CTime::GetCurrentTime();
    CString m_strTime=time.Format("%Y-%m-%d %H:%M:%S");
    CString m_strDefine=("3007-11-25 10:16:00");
    if(m_strTime>=m_strDefine)
    {
        AfxMessageBox("你落后了");
    }
    else
    {
        AfxMessageBox("你超前了");
    }

posted on 2008-11-25 10:33  山径山精  阅读(1132)  评论(0编辑  收藏  举报

导航