S
Nemesyzz schrieb:
Kannst es ja so für alle benötigten Strukturen machen und dann freigeben:
bool operator >(const SYSTEMTIME& st1,const SYSTEMTIME& st2)
{
FILETIME ft[2];
SystemTimeToFileTime(&st1,&ft[0]);
SystemTimeToFileTime(&st2,&ft[1]);
return CompareFileTime(&ft[0],&ft[1]) > 0;
}
bool operator <(const SYSTEMTIME& st1,const SYSTEMTIME& st2)
{
FILETIME ft[2];
SystemTimeToFileTime(&st1,&ft[0]);
SystemTimeToFileTime(&st2,&ft[1]);
return CompareFileTime(&ft[0],&ft[1]) < 0;
}
bool operator ==(const SYSTEMTIME& st1,const SYSTEMTIME& st2)
{
return memcmp(&st1,&st2,sizeof st1) == 0;
}
// usw.
Mir reicht der <-Operator :).
MfG SideWinder