博客园 首页 联系 订阅 管理

2010年9月4日

摘要: 1.获取以前文件的大小u_long GetFileSize(string strFile){  long retFileLen; //文件长度FILE* stream; //文件指针 if((stream = fopen(strFile.c_str(), "rb")) == NULL) return 0; fseek(stream, 0, SEEK_END); retFileLen = ftell... 阅读全文
posted @ 2010-09-04 12:42 cqx 阅读(382) 评论(0) 推荐(0)

摘要: SYSTEMTIME systime;::GetSystemTime(&system);CString strText = _T("");strText.Format(_T("%d-%d-%d\n %d:%d:%d"), systime.wYear, systime.wMonth, systime.wDay, systime.wHour, systime.wMinute, systime.... 阅读全文
posted @ 2010-09-04 12:20 cqx 阅读(122) 评论(0) 推荐(0)