Updating system time in MFC
-
How to get the system time in MFC? Give me some samples r urls Regards Nisha.S:rose:
-
How to get the system time in MFC? Give me some samples r urls Regards Nisha.S:rose:
nisha00000 wrote:
How to get the systemtime in MFC?
The solution resides in your query itself. See GetSystemTime().
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
How to get the system time in MFC? Give me some samples r urls Regards Nisha.S:rose:
-
How to get the system time in MFC? Give me some samples r urls Regards Nisha.S:rose:
hi use this it helps u. // get as a CTime CTime timeTime; DWORD dwResult =m_retirmentdate.GetTime(timeTime); // pCtrl->GetTime(timeTime); if (dwResult == GDT_VALID) { // the user checked the box and specified data CString str; // is it a time-only control, or a date-only control? if ((m_retirmentdate.GetStyle() & DTS_TIMEFORMAT) == DTS_TIMEFORMAT) str = timeTime.Format(_T("%X")); else str = timeTime.Format(_T("%x")); AfxMessageBox(str); } else { // the user unmarked the "none" box AfxMessageBox(_T("Time not set!")); }
-
How to get the system time in MFC? Give me some samples r urls Regards Nisha.S:rose:
And see World Time[^].