编译环境:VS2010
获取系统时间的四种方法:
第1种:
CString str; //获取系统时间CTime tm;
tm=CTime::GetCurrentTime();
str=tm.Format("现在时间是%Y年%m月%d日 %X");
MessageBox(str,NULL,MB_OK);
SYSTEMTIME st;
CString strDate,strTime;
GetLocalTime(
编译环境:VS2010
获取系统时间的四种方法:
第1种:
CString str; //获取系统时间MessageBox(str,NULL,MB_OK);