我在数据库里面有个时间字段:TIMER。在程序里面我要得到它,赋给另一个CTime变量,老不行。
CDBVariant DB_PcServertime;
RS.GetFieldValue("TIMER",DB_PcServertime);
CTime m_PcServerTime=DB_PcServertime.m_pdate;//就是这句老不对,VC这样说:binary '=' : no operator defined which takes a right-hand operand of type 'struct tagTIMESTAMP_STRUCT *' (or there is no acceptable conversion)
麻烦大家帮忙想想啊。
CDBVariant DB_PcServertime;
RS.GetFieldValue("TIMER",DB_PcServertime);
CTime m_PcServerTime=DB_PcServertime.m_pdate;//就是这句老不对,VC这样说:binary '=' : no operator defined which takes a right-hand operand of type 'struct tagTIMESTAMP_STRUCT *' (or there is no acceptable conversion)
麻烦大家帮忙想想啊。
解决方案 »
- 请问高手们,主线程中的一个死循环,如何用子线程去终止它,我建立是一个MFC 对话框程序
- 数组越界的解决思路
- inet_ntoa (*(struct in_addr *)*hostinfo->h_addr_list)
- 一个难题,给50分,解决后在加50分,马上结帖
- 一个简单的cstring类问题
- 怎样安装打印驱动,or AddPrinterDriver, (for win2k) 那位老大能给各sample
- 菜鸟问题!!!!!
- recvfrom接受的字符串 怎么每次都接受5个字符,后面全是00000000000000000
- mfc中为什么要有resource.h中定义的id?
- MFC EditBrowse控件如何 既能浏览文件,又能浏览文件夹
- 没有过年的欲望, 散分~~~
- OnTimer函数每隔一定时间更新选定的CListCtrl中该行的信息,如何实现
CTime m_PcServerTime=DB_PcServertime.m_pdate
改为
CTime m_PcServerTime=CTime(DB_PcServertime.m_pdate)我也不大懂。