#include <fstream>
#include <sstream>
using namespace std;
// test 测试
wstring strPath;
strPath = _T("e:\\time.log");
wfstream log;
log.open(strPath.c_str(),ios::out|ios::app);
wstringstream ss;
ss << _T("RCWinMain begin:")<<::GetTickCount()<<endl;
log.write(ss.str().c_str(),ss.str().length());
log.close();