Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTree View / List View combination Pin
Richard Andrew x648-Sep-06 19:40
professionalRichard Andrew x648-Sep-06 19:40 
AnswerRe: Tree View / List View combination Pin
Waldermort8-Sep-06 20:20
Waldermort8-Sep-06 20:20 
GeneralRe: Tree View / List View combination Pin
Richard Andrew x649-Sep-06 6:00
professionalRichard Andrew x649-Sep-06 6:00 
AnswerRe: Tree View / List View combination Pin
Michael Dunn9-Sep-06 17:48
sitebuilderMichael Dunn9-Sep-06 17:48 
GeneralRe: Tree View / List View combination Pin
Richard Andrew x649-Sep-06 17:52
professionalRichard Andrew x649-Sep-06 17:52 
QuestionIs there another ways to get file date stamp? Pin
pcname8-Sep-06 14:53
pcname8-Sep-06 14:53 
AnswerRe: Is there another ways to get file date stamp? Pin
Richard Andrew x648-Sep-06 19:51
professionalRichard Andrew x648-Sep-06 19:51 
GeneralRe: Is there another ways to get file date stamp? Pin
pcname9-Sep-06 3:17
pcname9-Sep-06 3:17 
Thanks. I used GetFileTime. But I got another problem.Following is my code:

TCHAR FilePath[MAX_PATH];
TCHAR NewPath[MAX_PATH];
WIN32_FIND_DATA fd;
FILETIME mtime, local;
SYSTEMTIME st;

sprintf(FilePath, "%s\\*.*", strpath);
HANDLE hFind = FindFirstFile(FilePath, &fd);
if (hFind == INVALID_HANDLE_VALUE)
return;

do
{
if (fd.cFileName[0] != '.')
{
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
sprintf(NewPath, "%s\\%s", strpath, fd.cFileName);
Findfiles(NewPath);
}
else
{
GetFileTime(hFind, NULL, NULL, &mtime);
FileTimeToLocalFileTime( &mtime, &local );
FileTimeToSystemTime(&local, &st);
CString time;
time.Format("%02d/%02d/%04d", st.wMonth, st.wDay, st.wYear);
AfxMessageBox(time);
}
}
}
while (FindNextFile(hFind, &fd));
FindClose(hFind);

But my file last modofied time is 9/5/2006. The Time always dispalyed as 12/24/18186. what is wrong?
Thanks a lot.
GeneralRe: Is there another ways to get file date stamp? Pin
Gary R. Wheeler9-Sep-06 5:25
Gary R. Wheeler9-Sep-06 5:25 
QuestionInstall runtime libraries??? Pin
CTaylor898-Sep-06 8:50
CTaylor898-Sep-06 8:50 
AnswerRe: Install runtime libraries??? Pin
Jun Du8-Sep-06 9:18
Jun Du8-Sep-06 9:18 
GeneralRe: Install runtime libraries??? Pin
CTaylor898-Sep-06 10:14
CTaylor898-Sep-06 10:14 
GeneralRe: Install runtime libraries??? Pin
CTaylor898-Sep-06 11:06
CTaylor898-Sep-06 11:06 
GeneralRe: Install runtime libraries??? Pin
Dave Calkins8-Sep-06 13:03
Dave Calkins8-Sep-06 13:03 
QuestionLink issue with VS 2005 Pin
ky_rerun8-Sep-06 8:31
ky_rerun8-Sep-06 8:31 
AnswerRe: Link issue with VS 2005 Pin
ky_rerun8-Sep-06 8:35
ky_rerun8-Sep-06 8:35 
Questionpointers and array of pointers question Pin
kitty58-Sep-06 8:01
kitty58-Sep-06 8:01 
AnswerRe: pointers and array of pointers question Pin
David Crow8-Sep-06 8:04
David Crow8-Sep-06 8:04 
GeneralRe: pointers and array of pointers question Pin
kitty58-Sep-06 8:06
kitty58-Sep-06 8:06 
AnswerRe: pointers and array of pointers question Pin
Cedric Moonen8-Sep-06 8:18
Cedric Moonen8-Sep-06 8:18 
AnswerRe: pointers and array of pointers question Pin
Chris Losinger8-Sep-06 8:27
professionalChris Losinger8-Sep-06 8:27 
AnswerRe: pointers and array of pointers question Pin
David Crow8-Sep-06 8:28
David Crow8-Sep-06 8:28 
GeneralRe: pointers and array of pointers question Pin
kitty58-Sep-06 10:20
kitty58-Sep-06 10:20 
GeneralRe: pointers and array of pointers question Pin
David Crow8-Sep-06 10:26
David Crow8-Sep-06 10:26 
GeneralRe: pointers and array of pointers question Pin
Jörgen Sigvardsson8-Sep-06 11:33
Jörgen Sigvardsson8-Sep-06 11:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.