Click here to Skip to main content
16,016,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dll error Pin
Jonathan [Darka]23-Oct-06 0:12
professionalJonathan [Darka]23-Oct-06 0:12 
GeneralRe: dll error Pin
minkowski23-Oct-06 0:21
minkowski23-Oct-06 0:21 
QuestionHow to change Menu Text Pin
huynhnb22-Oct-06 23:19
huynhnb22-Oct-06 23:19 
AnswerRe: How to change Menu Text Pin
huynhnb23-Oct-06 0:13
huynhnb23-Oct-06 0:13 
QuestionError while returning value from try block Pin
voorugonda prashanth22-Oct-06 23:14
voorugonda prashanth22-Oct-06 23:14 
AnswerRe: Error while returning value from try block Pin
jhwurmbach23-Oct-06 0:10
jhwurmbach23-Oct-06 0:10 
AnswerRe: Error while returning value from try block Pin
kakan23-Oct-06 0:47
professionalkakan23-Oct-06 0:47 
QuestionDeleting Files Pin
69 Bay22-Oct-06 23:10
69 Bay22-Oct-06 23:10 
Hi
I have a class that I use for logging events in my applications, which are normally left running all day and year. The class generates txt files of the name :
app_name(YYYY_MM_DD).txt
and is designed to delete files that are a month old eg todays date is the 20/10/2006, so it will delete the 20/09/2006.

Occasionally the program may not be running for a few days. In this case the class does not delete the files that were generated a month ago - i.e. if the app was not running yesterday (the 19th), the log generated on 19/09/2006 would not be deleted.

Is there a simple way round this?
Can you use wild cards some how - for instance delete all files from 09/2006 at the start of 11/2006?

Thansk for any advice

69 Bay


AnswerRe: Deleting Files Pin
David Crow23-Oct-06 3:52
David Crow23-Oct-06 3:52 
GeneralRe: Deleting Files Pin
69 Bay23-Oct-06 4:58
69 Bay23-Oct-06 4:58 
QuestionHow to obtain a special folder path for ANY user? Pin
Bila122-Oct-06 23:06
Bila122-Oct-06 23:06 
AnswerRe: How to obtain a special folder path for ANY user? Pin
David Crow23-Oct-06 3:53
David Crow23-Oct-06 3:53 
GeneralRe: How to obtain a special folder path for ANY user? Pin
Bila123-Oct-06 4:02
Bila123-Oct-06 4:02 
GeneralRe: How to obtain a special folder path for ANY user? Pin
David Crow23-Oct-06 4:55
David Crow23-Oct-06 4:55 
GeneralRe: How to obtain a special folder path for ANY user? Pin
Bila123-Oct-06 5:09
Bila123-Oct-06 5:09 
GeneralRe: How to obtain a special folder path for ANY user? Pin
Sheng Jiang 蒋晟23-Oct-06 5:21
Sheng Jiang 蒋晟23-Oct-06 5:21 
QuestionRe: How to obtain a special folder path for ANY user? [modified] Pin
Bila123-Oct-06 5:28
Bila123-Oct-06 5:28 
GeneralRe: How to obtain a special folder path for ANY user? Pin
David Crow23-Oct-06 5:23
David Crow23-Oct-06 5:23 
GeneralRe: How to obtain a special folder path for ANY user? Pin
Bila123-Oct-06 5:31
Bila123-Oct-06 5:31 
QuestionC++ Benefit Pin
John Kenedy S.Kom22-Oct-06 23:05
John Kenedy S.Kom22-Oct-06 23:05 
AnswerRe: C++ Benefit Pin
jhwurmbach23-Oct-06 0:49
jhwurmbach23-Oct-06 0:49 
AnswerRe: C++ Benefit Pin
Zac Howland23-Oct-06 3:50
Zac Howland23-Oct-06 3:50 
GeneralRe: C++ Benefit Pin
John Kenedy S.Kom25-Oct-06 5:38
John Kenedy S.Kom25-Oct-06 5:38 
GeneralRe: C++ Benefit Pin
Zac Howland25-Oct-06 5:52
Zac Howland25-Oct-06 5:52 
GeneralRe: C++ Benefit Pin
John Kenedy S.Kom25-Oct-06 22:08
John Kenedy S.Kom25-Oct-06 22:08 

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.