I have the following function
I need to add 1 day or subtract one day from date which is derived from FILETIME(WIN sdk Structure), it's passed here as the first parameter
The second parameter will be either 1 or -1 but for some reason the date is never updated. Can anyone explain how to fix this problem?
void AddDateDiff(const Date& date, const __int64 num )
const __int64 nano100SecInDay=(__int64)10000000*60*60*24; // one day
pi = (__int64*)&date;
(*pi) += nano100SecInDay * num; // (num is 1 or -1)
Thanks in advance