得到时间字符串|程序当前的目录

    CTime time = CTime::GetCurrentTime();
    CString name_t = time.Format("%Y%m%d%H%M%S");

 

//获得应用程序路径和资源文件路径
    GetModuleFileName(NULL, FilePath, MAX_PATH);
    (_tcsrchr(FilePath, _T('\\')))[0] = 0;

 

posted @ 2015-04-19 18:41  zhq1943  阅读(79)  评论(0编辑  收藏  举报