摘要: 一、将字符串2011-08-1800:00:00转换为字符串2011-8-18,通过以下的函数CString DataDeleteZero(CString DATA){ CString strmonth,strday,stryear; int year=0,month=0,day=0; yea... 阅读全文
posted @ 2015-07-21 17:22 双河子思 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 方法1:CFile.CFileStatus fs;CFile::GetStatus(filename,fs);fs.m_attribute = 0x22;CFile::SetStatus(filename,fs);方法2:Win32 API使用到一个函数:SetFileAttributes设置文件属... 阅读全文
posted @ 2015-07-21 16:38 双河子思 阅读(555) 评论(0) 推荐(0) 编辑