Im trying to compare the file creation date with the one i have in my structure, however unlike a integer i cant use the operator > for this, have been searching for a reasonable explanation for a few hours now how to actually do this, but got none so far and thus im stuck.
std::string temp(Current_File.cFileName);
std::transform(temp.begin(), temp.end(), temp.begin(), ::tolower);
for (int i = 0; i < 100; i++)
{
std::transform(Triggers[i].Triggerword.begin(), Triggers[i].Triggerword.end(), Triggers[i].Triggerword.begin(), ::tolower);
if (Triggers[i].Channel && Triggers[i].Triggerword != "")
{
if (temp.find(Triggers[i].Triggerword) != std::string::npos || Triggers[i].Triggerword == "*")
{
found++;
for (int c = 0; c < 100; c++)
{
if (Triggers[i].Triggerword == Files[c].Triggername || Files[c].Triggername == "")
{
Files[c].Triggername = Triggers[i].Triggerword;
if (Current_File.ftCreationTime > Files[c].FileDate)
{
Files[c].FileDate = Current_File.ftCreationTime;
}
c = 100;
i = 100;
}
}
}
}
}
Files Filedate is FILETIME FileDate; in a structure.
So to round it up, my question here is, how do I check if the creationtime/date of the file is greater then the value in FileDate ?
(Ps. this is for windows if that matters)
Thanks in advance
What I have tried:
Mostly googling, since the documentation does not state what type FILETIME actualy realy is, i've checked the headerfile of it in vc++ but that does not give me any clarity of what that realy is.