CFileFind file;
int count=0
BOOL bContinue = file.FindFile(fdirectoryPath + "\\*.*"); while( bContinue )
{
bContinue = file.FindNextFile(); if(!file.IsDirectory() && !file.IsDots()) //不是文件夹
{
........................
count++;
CString strFile = file.GetFileName();省略号的地方应该怎么做?
int count=0
BOOL bContinue = file.FindFile(fdirectoryPath + "\\*.*"); while( bContinue )
{
bContinue = file.FindNextFile(); if(!file.IsDirectory() && !file.IsDots()) //不是文件夹
{
........................
count++;
CString strFile = file.GetFileName();省略号的地方应该怎么做?
解决方案 »
- 如何GDI+下画的曲线上点的坐标值?
- 图形异或绘图 设置问题???????
- 按钮上的中文字体太大,显示不全,怎么让字体变小啊?
- int 到unsigned char的转换???
- 高分求文件监控、进程监控、注册表监控、网络监控等相关程序的源代码,分不够再加!!
- 如何实现象VS.NET属性或者BCB里面属性对话框那样的两栏,并且右边一栏可以有下拉框(目前仅需要一个下拉框)!!
- 请教一些语法问题。
- ATL类型转换问题?
- 请问如何能够实现类似Editbox,listctrl,listbox这类控件的滚动条重画!
- 这个问题困惑我好长时间了,为什么下面一段代码从数据库中取出的数据(image型)如果大于64k显示为一片漆黑,而小于64K,则正常呢?
- Mircrosoft Forms 2.0 Label 使用ShowWindow(SW_SHOW) 后出错.
- 头疼:VC中如何获取共享文件夹授权用户名称
CFileFind::IsSystem
BOOL IsSystem( ) const;如果用打开方式的,需要用try捕捉异常,代价高,速度慢,不值
{
bContinue = file.FindNextFile(); if(!file.IsDirectory() && !file.IsDots() && !file.IsSystem ()) {
count++;
}
}
解决~!!
{
bContinue = file.FindNextFile(); if(!file.IsDirectory()
&& !file.IsDots()
&& (_access( file.GetFileName(), 2 )) != -1 )
//_access( file.GetFileName(), 2 )判断是否有写权限
{
count++;