CTime的问题。。。出现了Debug Assertion Failed!
vc吧
全部回复
仅看楼主
level 1
我想求2个时间相隔的天数。
但是编译之后出现Debug Assertion Failed!
是我函数使用不当吗?
CTime time1(2000,1,2);
CTime time2(2002,1,1);
CTimeSpan cha;
cha=time2-time1;
GetDlgItem(IDC_EDIT1)->SetWindowText(cha.Format("%d %M %S"));
2011年04月06日 13点04分 1
level 1
GetDlgItem(IDC_EDIT1)->SetWindowText(cha.Format("%d %M %S"));
后面没需要转换的数据类型啊
2011年04月07日 14点04分 2
level 1
转换不当!cha.Format("%d %M %S")返回的不是SetWindowText想要的字符串类型
2011年04月17日 13点04分 3
level 1
同意2楼
2011年05月25日 06点05分 4
1