I am facing some problem in displaying system time. When It display in message box, it is different from the time shown on PC at botton right corner.
Could you please guide me.
Here is code.
Code:SYSTEMTIME st;
char buf[80];
GetSystemTime(&st);
sprintf(buf,"%d:%d:%d ",st.wHour, st.wMinute, st.wMilliseconds);
//GetTimeFormat( 0, 0, &st, "hh':'mm':'ss tt", buf, sizeof(buf) );
MessageBox( NULL, buf, " SYSTEM TIME", MB_OK );