摘要: 1 string GetMainProgInfo() 2 { 3 string strRet; 4 TCHAR szPath[MAX_PATH]; 5 GetModuleFileName(NULL,szPath,MAX_PATH); 6 7 //根据主程序路径获取版本信息 8 DWORD dwHan 阅读全文
posted @ 2017-03-01 10:25 byjz 阅读(637) 评论(0) 推荐(0) 编辑
摘要: struct tm* GetCurTime(time_t inTime) { struct tm* curTime = localtime(&inTime); curTime->tm_year += 1900; curTime->tm_mon += 1; return curTime; } 阅读全文
posted @ 2017-03-01 10:23 byjz 阅读(1395) 评论(0) 推荐(0) 编辑