Ok, I tried doing the following:
to display the current time/date at the time the action occurs. But what I get is something like: "5248/5248/5248" w/o the quotes. I looked up the SYSTEMTIME structure and the GetSystemTime(...) function, but I don't understand what I am actually doing wrong.Code:SYSTEMTIME sys; CString datetime; datetime.Empty(); datetime.Format("%i/%i/%i", sys.wMonth, sys.wDay, sys.wYear); GetSystemTime(&sys); AfxMessageBox(datetime);
So my question is, does anyone have any idea as to why it isn't showing the current date?