SYSTEMTIME
-
Hi Can anyone tell how to compare systemtime. SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); Is this a good approach t1==t2 Thanks
No. Because SYSTEMTIME doesn't have an operator== defined for it. You can define one.
bool operator==(const SYSTEMTIME& left, const SYSTEMTIME& right)
{
// Compare every element of left with every element of right
}BTW - wrong forum - SYSTEMTIME has nopthing to do with ATL, WTL or STL
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hi Can anyone tell how to compare systemtime. SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); Is this a good approach t1==t2 Thanks
SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); CTime tme1(&t1); CTime tme2(&t2); tme1 == tme2 ? TRUE : FALSE;