Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog and Adobe Reader problem Pin
rp_suman2-Jul-07 17:52
rp_suman2-Jul-07 17:52 
GeneralRe: CFileDialog and Adobe Reader problem Pin
Nibu babu thomas3-Jul-07 1:55
Nibu babu thomas3-Jul-07 1:55 
GeneralRe: CFileDialog and Adobe Reader problem Pin
rp_suman4-Jul-07 22:19
rp_suman4-Jul-07 22:19 
QuestionMapViewOfFile Pin
LiYS7-Jun-07 22:33
LiYS7-Jun-07 22:33 
QuestionInternal server error Pin
csridevi7-Jun-07 22:28
csridevi7-Jun-07 22:28 
AnswerRe: Internal server error Pin
Cedric Moonen7-Jun-07 22:48
Cedric Moonen7-Jun-07 22:48 
QuestionGet File Information Pin
Programm3r7-Jun-07 22:16
Programm3r7-Jun-07 22:16 
AnswerRe: Get File Information Pin
Nibu babu thomas7-Jun-07 22:18
Nibu babu thomas7-Jun-07 22:18 
Programm3r wrote:
What function does one use again to get all the information about a file.
Date created, Date modified and so on.


GetFileTime

Here is a sample from MSDN...

BOOL GetLastWriteTime(HANDLE hFile, LPSTR lpszString)
{
    FILETIME ftCreate, ftAccess, ftWrite, ftLocal;
    SYSTEMTIME stCreate;

    // Retrieve the file times for the file.
    if (!GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite))
        return FALSE;

    // Convert the last-write time to local time.
    if (!FileTimeToLocalFileTime(&ftWrite, &ftLocal))
        return FALSE;

    // Convert the local file time from UTC to system time.
    FileTimeToSystemTime(&ftLocal, &stCreate);

    // Build a string showing the date and time.
    wsprintf(lpszString, "%02d/%02d/%d  %02d:%02d",
        stCreate.wDay, stCreate.wMonth, stCreate.wYear,
        stCreate.wHour, stCreate.wMinute);

    return TRUE;
}



Nibu thomas
A Developer

Code must be written to be read, not by the compiler, but by another human being.

http:\\nibuthomas.wordpress.com

GeneralRe: Get File Information Pin
Programm3r7-Jun-07 22:29
Programm3r7-Jun-07 22:29 
GeneralRe: Get File Information Pin
Nibu babu thomas7-Jun-07 22:33
Nibu babu thomas7-Jun-07 22:33 
AnswerRe: Get File Information Pin
Programm3r7-Jun-07 22:20
Programm3r7-Jun-07 22:20 
AnswerRe: Get File Information Pin
Hamid_RT7-Jun-07 22:30
Hamid_RT7-Jun-07 22:30 
GeneralRe: Get File Information Pin
Programm3r7-Jun-07 22:52
Programm3r7-Jun-07 22:52 
GeneralRe: Get File Information Pin
Hamid_RT7-Jun-07 23:00
Hamid_RT7-Jun-07 23:00 
AnswerRe: Get File Information Pin
Rajkumar R7-Jun-07 22:31
Rajkumar R7-Jun-07 22:31 
GeneralRe: Get File Information Pin
Programm3r7-Jun-07 23:01
Programm3r7-Jun-07 23:01 
QuestionFlickering on the view Pin
maraka Rama subba reddy7-Jun-07 22:16
maraka Rama subba reddy7-Jun-07 22:16 
AnswerRe: Flickering on the view Pin
Jhony george7-Jun-07 23:59
Jhony george7-Jun-07 23:59 
AnswerRe: Flickering on the view Pin
Iain Clarke, Warrior Programmer8-Jun-07 5:27
Iain Clarke, Warrior Programmer8-Jun-07 5:27 
QuestionFlickering on the view [modified] Pin
maraka Rama subba reddy11-Jun-07 18:52
maraka Rama subba reddy11-Jun-07 18:52 
QuestionFunction behaving differently in Debug and Release mode. Pin
Sameer_Thakur7-Jun-07 22:11
Sameer_Thakur7-Jun-07 22:11 
AnswerRe: Function behaving differently in Debug and Release mode. Pin
KarstenK7-Jun-07 22:36
mveKarstenK7-Jun-07 22:36 
QuestionHelp me, I want to convert multiple jpeg file to single swf file in my VC++/MFC project Pin
r.gokuldass7-Jun-07 22:07
r.gokuldass7-Jun-07 22:07 
AnswerRe: Help me, I want to convert multiple jpeg file to single swf file in my VC++/MFC project Pin
KarstenK7-Jun-07 22:40
mveKarstenK7-Jun-07 22:40 
GeneralRe: Help me, I want to convert multiple jpeg file to single swf file in my VC++/MFC project Pin
r.gokuldass8-Jun-07 3:00
r.gokuldass8-Jun-07 3:00 

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.