Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need to write the ASCII (230) in XML content section using MSXML 4.0. Pin
AnotherFakeName25-Jun-08 9:11
AnotherFakeName25-Jun-08 9:11 
GeneralRe: Need to write the ASCII (230) in XML content section using MSXML 4.0. Pin
Nemanja Trifunovic25-Jun-08 11:02
Nemanja Trifunovic25-Jun-08 11:02 
AnswerRe: Need to write the ASCII (230) in XML content section using MSXML 4.0. Pin
AnotherFakeName25-Jun-08 9:11
AnotherFakeName25-Jun-08 9:11 
GeneralRe: Need to write the ASCII (230) in XML content section using MSXML 4.0. Pin
AnotherFakeName25-Jun-08 10:23
AnotherFakeName25-Jun-08 10:23 
QuestionDate change notification Pin
Ali Tavakol25-Jun-08 3:20
Ali Tavakol25-Jun-08 3:20 
AnswerRe: Date change notification [modified] Pin
SandipG 25-Jun-08 3:25
SandipG 25-Jun-08 3:25 
AnswerRe: Date change notification Pin
David Crow25-Jun-08 8:53
David Crow25-Jun-08 8:53 
AnswerRe: Date change notification Pin
Bram van Kampen25-Jun-08 10:57
Bram van Kampen25-Jun-08 10:57 
Hi,

Well, what I've once done in a situation like that goes at follows:-
At Startup, read the time and calculate the timespan untill 00:00:00 Next.
{time_t Now=time(NULL); long Delay=86400-(Now-(Now/86400)*86400));}
Then Set a timer for this Delay(*1000) (timers work in mS!).
When the Timer Fires, first set a New one for 86400 Seconds. Then do the bits you need to do, and kill the old timer.

Depending on your needs, there are thousands of methods to skin this particular cat. The problem branches various ways, depending on what you want to do retrospectively with days where the system was not running for several days, and also what must happen if the user changes the Clock or Timezone, What about DST. None of that is difficult to resolve, provided one is aware of these 'imponderable' actions.

Hope this is helpfull,

Regards Smile | :)

Bram van Kampen

QuestionEnabling ClearType setting in windows vista changes the font size Pin
subramanyeswari25-Jun-08 2:47
subramanyeswari25-Jun-08 2:47 
QuestionGetting user input into a list control Pin
theCPkid25-Jun-08 2:05
theCPkid25-Jun-08 2:05 
QuestionRe: Getting user input into a list control Pin
Rajesh R Subramanian25-Jun-08 2:42
professionalRajesh R Subramanian25-Jun-08 2:42 
QuestionRe: Getting user input into a list control Pin
theCPkid25-Jun-08 3:32
theCPkid25-Jun-08 3:32 
AnswerRe: Getting user input into a list control Pin
Rajesh R Subramanian25-Jun-08 3:52
professionalRajesh R Subramanian25-Jun-08 3:52 
AnswerRe: Getting user input into a list control Pin
Steen Krogsgaard25-Jun-08 3:13
Steen Krogsgaard25-Jun-08 3:13 
QuestionHow to hide pw in C++ command line exe Pin
Nandu_77b25-Jun-08 1:59
Nandu_77b25-Jun-08 1:59 
AnswerRe: How to hide pw in C++ command line exe Pin
theCPkid25-Jun-08 2:11
theCPkid25-Jun-08 2:11 
QuestionRe: How to hide pw in C++ command line exe Pin
Rajesh R Subramanian25-Jun-08 2:51
professionalRajesh R Subramanian25-Jun-08 2:51 
AnswerRe: How to hide pw in C++ command line exe - source code Pin
Nandu_77b25-Jun-08 3:07
Nandu_77b25-Jun-08 3:07 
QuestionRe: How to hide pw in C++ command line exe - source code Pin
Nandu_77b25-Jun-08 3:31
Nandu_77b25-Jun-08 3:31 
AnswerRe: How to hide pw in C++ command line exe - source code Pin
Rajesh R Subramanian25-Jun-08 3:43
professionalRajesh R Subramanian25-Jun-08 3:43 
QuestionRe: How to hide pw in C++ command line exe - source code Pin
Nandu_77b25-Jun-08 3:47
Nandu_77b25-Jun-08 3:47 
AnswerRe: How to hide pw in C++ command line exe - source code Pin
Rajesh R Subramanian25-Jun-08 4:13
professionalRajesh R Subramanian25-Jun-08 4:13 
GeneralRe: How to hide pw in C++ command line exe - source code Pin
Nandu_77b25-Jun-08 5:06
Nandu_77b25-Jun-08 5:06 
QuestionProblem writing in to a File Pin
sunny_vc25-Jun-08 1:53
sunny_vc25-Jun-08 1:53 
AnswerRe: Problem writing in to a File Pin
toxcct25-Jun-08 2:17
toxcct25-Jun-08 2:17 

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.