CString strLogInfo;
CTime time = CTime::GetCurrentTime();
strLogInfo.Format("%04d-%02d-%02d %02d:%02d:%02d --- ",time.GetYear(),time.GetMonth(),time.GetDay(),time.GetHour(),time.GetMinute(),time.GetSecond());
--
#include "StdAfx.h"
#include ".bet.h"
#include <stdlib.h>
#include<boost/tokenizer.hpp>
#include <atlrx.h>
#include <list>
Bet::Bet(void)
{
SYSTEMTIME st;
GetSystemTime(&st);
srand( (unsigned)st.wMilliseconds);
}
---
char aaaa[200];
int aaa=GetTickCount();
sprintf ( aaaa, "开始:%d",aaa );
AddMsg ( 1, aaaa );
--