Advertisement
Advertisement
| 05.09.2008 at 04:51AM PDT, ID: 23388965 | Points: 499 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: |
CFileFind FSearcher;
CString cSearchFileName;
cSearchFileName.Format(_T("%s\\*.*"), ArchivPath);
if(FSearcher.FindFile( cSearchFileName ))
{
bool bFilesAvailable = TRUE;
while( bFilesAvailable )
{
bFilesAvailable = FSearcher.FindNextFile();
if (!FSearcher.IsDots())
{
CString csFName;
CTime csFDate;
FSearcher.GetLastWriteTime(csFDate);
csFName.Format(_T("%s %s"),csFDate.Format(_T("%d-%m-%y %H:%M")), FSearcher.GetFileName());
rNameList.Add( csFName );
}
}
}
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.09.2008 at 04:59AM PDT, ID: 21531876 |
| 05.09.2008 at 05:24AM PDT, ID: 21532020 |
| 05.09.2008 at 05:58AM PDT, ID: 21532289 |
| 05.09.2008 at 07:49AM PDT, ID: 21533403 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: |
#include <list>
#include <string>
using namespace std;
vector<string> lNameList;
CFileFind FSearcher;
CString cSearchFileName;
cSearchFileName.Format(_T("%s\\*.*"), ArchivPath);
if(FSearcher.FindFile( cSearchFileName ))
{
bool bFilesAvailable = TRUE;
while( bFilesAvailable )
{
bFilesAvailable = FSearcher.FindNextFile();
if (!FSearcher.IsDots())
{
CString csFName;
CTime csFDate;
FSearcher.GetLastWriteTime(csFDate);
csFName.Format(_T("%s %s"),csFDate.Format(_T("%d-%m-%y %H:%M")), FSearcher.GetFileName());
lNameList.push_back( csFName );
}
}
}
lNameList.sort();
|
| 05.15.2008 at 05:20AM PDT, ID: 21572651 |