Click here to Skip to main content
15,920,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRegarding " #if _MSC_VER >= 1100" Pin
janadhana18-Sep-06 20:29
janadhana18-Sep-06 20:29 
AnswerRe: Regarding " #if _MSC_VER >= 1100" Pin
Christian Graus18-Sep-06 20:40
protectorChristian Graus18-Sep-06 20:40 
AnswerRe: Regarding " #if _MSC_VER >= 1100" Pin
prasad_som18-Sep-06 20:41
prasad_som18-Sep-06 20:41 
AnswerRe: Regarding " #if _MSC_VER >= 1100" Pin
Nibu babu thomas18-Sep-06 20:42
Nibu babu thomas18-Sep-06 20:42 
QuestionListing files in a directory Pin
Imtiaz Murtaza18-Sep-06 20:11
Imtiaz Murtaza18-Sep-06 20:11 
AnswerRe: Listing files in a directory Pin
Nibu babu thomas18-Sep-06 20:40
Nibu babu thomas18-Sep-06 20:40 
AnswerRe: Listing files in a directory Pin
Hamid_RT18-Sep-06 21:02
Hamid_RT18-Sep-06 21:02 
AnswerRe: Listing files in a directory Pin
David Crow19-Sep-06 3:54
David Crow19-Sep-06 3:54 
Imtiaz Murtaza wrote:
If i enumerate these files using FindFirstFile method and then sort these on the basis of date, it take enormous amount of time.


Rather than add them all to some data structure, sort the data structure, and then process the ones at the top (or bottom) of the data structure, just check the date as you are enumerating the files. Something like:

FindFirstFile(...);
while (...)
{
    if (file_create_date < cutoff_date)
        add_to_list();
    FindNextFile(...);
}
Now the list will only contain those files that were created after a certain date.


"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

"Judge not by the eye but by the heart." - Native American Proverb


QuestionHow to paint the caption bar Pin
kiranin18-Sep-06 18:50
kiranin18-Sep-06 18:50 
AnswerRe: How to paint the caption bar Pin
prasad_som18-Sep-06 19:29
prasad_som18-Sep-06 19:29 
AnswerRe: How to paint the caption bar Pin
Hamid_RT18-Sep-06 19:31
Hamid_RT18-Sep-06 19:31 
GeneralRe: How to paint the caption bar Pin
kiranin18-Sep-06 19:35
kiranin18-Sep-06 19:35 
GeneralRe: How to paint the caption bar Pin
Hamid_RT18-Sep-06 20:48
Hamid_RT18-Sep-06 20:48 
GeneralRe: How to paint the caption bar Pin
kiranin18-Sep-06 21:36
kiranin18-Sep-06 21:36 
AnswerRe: How to paint the caption bar Pin
Sarath C18-Sep-06 19:42
Sarath C18-Sep-06 19:42 
Questionquestion about getfileattributes function Pin
swatgodjr18-Sep-06 14:39
swatgodjr18-Sep-06 14:39 
AnswerRe: question about getfileattributes function Pin
Nibu babu thomas18-Sep-06 17:22
Nibu babu thomas18-Sep-06 17:22 
GeneralRe: question about getfileattributes function Pin
swatgodjr18-Sep-06 17:54
swatgodjr18-Sep-06 17:54 
GeneralRe: question about getfileattributes function Pin
Nibu babu thomas18-Sep-06 17:58
Nibu babu thomas18-Sep-06 17:58 
GeneralRe: question about getfileattributes function Pin
swatgodjr18-Sep-06 18:51
swatgodjr18-Sep-06 18:51 
AnswerRe: question about getfileattributes function Pin
kakan18-Sep-06 22:33
professionalkakan18-Sep-06 22:33 
AnswerRe: question about getfileattributes function Pin
David Crow19-Sep-06 4:00
David Crow19-Sep-06 4:00 
GeneralRe: question about getfileattributes function Pin
swatgodjr19-Sep-06 8:18
swatgodjr19-Sep-06 8:18 
QuestionDo you see the resource leak? Pin
charlieg18-Sep-06 14:23
charlieg18-Sep-06 14:23 
AnswerRe: Do you see the resource leak? Pin
charlieg18-Sep-06 14:29
charlieg18-Sep-06 14:29 

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.