
VC++
文章平均质量分 67
sitiao2009
这个作者很懒,什么都没留下…
展开
-
解决 C++错误 error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CString' (or there is no
今天在写程序编译的时候出现了如下的错误:error C2679: binary = : no operator defined which takes a right-hand operand of type class CString (or there is no acceptable conversion) 代码如下void CBus::SetValue(CString原创 2010-04-23 20:23:00 · 22858 阅读 · 1 评论 -
MFC 获得系统时间
点击按钮获得时间并显示按钮的类里添加代码: COleDateTime; COleDateTime datetime; datetime=COleDateTime::GetCurrentTime(); C原创 2010-04-28 17:08:00 · 869 阅读 · 0 评论 -
VC/MFC 时间格式转换和比较大小 CString转为COleDateTime
弄了好久终于完成了时间格式转换比较的问题,在这里分享下我的一点点经验吧,嘿嘿我用的数据库是SQL Server2005,数据库表中有一类型为smalldatetime的数据,用于存放发车时间(比如:2010-1-1 10:00:00)要求在VC++里面提取该时间并和当前系统时间进行比较,判断大小 void CSaleDlg::OnBtnSurebuy() { // TODO: Ad原创 2010-04-30 18:33:00 · 6566 阅读 · 0 评论