摘要: http://www.cppblog.com/alantop/archive/2006/05/10/6871.html1.WIN32_FIND_DATA m_data;HANDLE hFile;hFile=FindFirstFile(filename,&m_data)if(hFile==INVALID_HANDLE_VALUE) //file not foundMake sure you close the handle if the file is found.FindClose(hFile);2.You can use SHGetFileInfo()The prototype of 阅读全文
posted @ 2012-08-07 15:06 好好学习,天天进步 阅读(334) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/cxun/archive/2009/02/24/1397153.html#include<iostream>#include<io.h>#include<sys\stat.h>#include<afx.h>#define_AFXDLLusingnamespacestd;voidmain(){//此文件在工程打开状态下为不可访问char*filepath="..\\test.ncb";//方法一struct_statinfo;_stat(filepath,&info);int 阅读全文
posted @ 2012-08-07 10:35 好好学习,天天进步 阅读(265) 评论(0) 推荐(0) 编辑