systemzeit nicht korrekt!
-
Hallo!
Ich bekomme mit getSystemzeit die falsche uhrzeit zurück, ist um 1 h hinten.
Warum ist das so?
Wie bekomme ich die Uhrzeit, die rechts unten in der Taskleiste ist?SYSTEMTIME st;
GetSystemTime(&st);
CString strTime;
strTime.Format("%d. %d. %d, %d: %d: %d:",st.wDay, st.wMonth, st.wYear,st.wHour, st.wMinute, st.wSecond);
AfxMessageBox(strTime);
-
CTime time = CTime::GetCurrentTime(); CString strTime; strTime.Format("%02d:%02d:%02d", time.GetHour(), time.GetMinute(), time.GetSecond()); AfxMessageBox(strTime);
Gruß
:: NoName ::