65,211
社区成员
发帖
与我相关
我的任务
分享-------- 文件
使用QT 4的C++ GUI编程.zip
Created : 03/08/08 13:53:41
Last Access: 09/09/08 00:00:00
Last Write : 03/08/08 13:54:02
-------- 文件
qt-x11-opensource-src-4.3.4.tar.gz
Created : 03/09/08 21:27:52
Last Access: 09/09/08 00:00:00
Last Write : 03/09/08 21:31:54
-------- 文件
Qt.4.C++.GUI..pdf
Created : 03/10/08 21:57:39
Last Access: 09/09/08 00:00:00
Last Write : 03/10/08 21:49:48
-------- 文件
qtopia-core-opensource-src-4.3.3.tar.gz
Created : 03/11/08 21:57:10
Last Access: 09/09/08 00:00:00
Last Write : 03/11/08 21:59:38
-------- 文件
qt-win-patch.zip
Created : 03/14/08 08:37:52
Last Access: 09/09/08 00:00:00
Last Write : 03/14/08 08:38:00
-------- 文件
License.txt
Created : 03/14/08 10:48:38
Last Access: 09/09/08 00:00:00
Last Write : 03/14/08 10:51:04
-------- 文件
msvc-include-path-settings.png
Created : 03/13/08 17:04:29
Last Access: 11/28/08 00:00:00
Last Write : 03/13/08 17:04:34
-------- 文件
msvc-lib-path-settings.png
Created : 03/13/08 17:16:13
Last Access: 11/28/08 00:00:00
Last Write : 03/13/08 17:16:14
-------- 文件
qt-tools-built-using-vc2005.jpg
Created : 03/13/08 17:16:21
Last Access: 11/28/08 00:00:00
Last Write : 03/13/08 17:17:36
-------- 文件
qt4.chm
Created : 03/10/08 21:57:38
Last Access: 09/09/08 00:00:00
Last Write : 03/10/08 21:22:46
-------- 文件夹
d:\qt4\qt商业版
-------- 文件
qt-vsintegration-1.3.1.exe
Created : 03/14/08 10:37:31
Last Access: 11/28/08 00:00:00
Last Write : 03/14/08 10:46:44
-------- 文件
qt-win-commercial-src-4.3.1.zip
Created : 03/14/08 10:37:17
Last Access: 09/09/08 00:00:00
Last Write : 03/14/08 10:48:02
-------- 文件
Thumbs.db
Created : 06/23/08 16:16:34
Last Access: 09/09/08 00:00:00
Last Write : 06/23/08 16:16:36
-------- 文件
qtcreator-0.9-windows-setup.zip
Created : 11/11/08 13:12:01
Last Access: 11/11/08 00:00:00
Last Write : 11/11/08 13:31:36
#include <iostream>
#include <afx.h>
#include <Windows.h>
using namespace std;
CFileFind a;
FILETIME myaccesstime, mywritetime;
FILE *fp = fopen("readme.txt", "w+");
void Recurse(LPCTSTR pstr)
{
CFileFind finder;
CString strWildcard(pstr);
strWildcard += _T("\\*.*");
BOOL bWorking = finder.FindFile(strWildcard);
while (bWorking)
{
bWorking = finder.FindNextFile();
if (finder.IsDots())
continue;
if (finder.IsDirectory())
{
fprintf(fp, "-------- 文件夹\n" );
CString str = finder.GetFilePath();
fprintf(fp,_T("%s\n"), (LPCTSTR)str);
Recurse(str);
}
else
{
fprintf(fp, "-------- 文件\n" );
fprintf(fp, finder.GetFileName().GetBuffer(), "\n" );
CTime tempTime;
CString str;
fprintf(fp,_T("\n\tCreated : "));
if (finder.GetCreationTime(tempTime))
{
str = tempTime.Format(_T("%c"));
fprintf(fp,_T("%s\n"), (LPCTSTR) str);
}
else
{
fprintf(fp,_T("(unavailable)\n"));
}
fprintf(fp,_T("\tLast Access: "));
if (finder.GetLastAccessTime(tempTime))
{
str = tempTime.Format(_T("%c"));
fprintf(fp,_T("%s\n"), (LPCTSTR) str);
}
else
{
fprintf(fp,_T("(unavailable)\n"));
}
fprintf(fp,_T("\tLast Write : "));
if (finder.GetLastWriteTime(tempTime))
{
str = tempTime.Format(_T("%c"));
fprintf(fp,_T("%s\n"), (LPCTSTR) str);
}
}
}
finder.Close();
}
int main()
{
Recurse("d:\\qt4");
fclose(fp);
}