Click here to Skip to main content
15,908,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Add Two Time Pin
led mike21-Apr-08 5:40
led mike21-Apr-08 5:40 
GeneralRe: How to Add Two Time Pin
CPallini21-Apr-08 5:54
mveCPallini21-Apr-08 5:54 
GeneralHow to Compare Two Date Pin
sharanu21-Apr-08 23:35
sharanu21-Apr-08 23:35 
GeneralRe: How to Compare Two Date Pin
CPallini22-Apr-08 0:36
mveCPallini22-Apr-08 0:36 
GeneralRe: How to Compare Two Date Pin
sharanu22-Apr-08 1:42
sharanu22-Apr-08 1:42 
GeneralRe: How to Compare Two Date Pin
CPallini22-Apr-08 1:53
mveCPallini22-Apr-08 1:53 
GeneralRe: How to Compare Two Date Pin
sharanu22-Apr-08 2:15
sharanu22-Apr-08 2:15 
GeneralRe: How to Compare Two Date Pin
CPallini22-Apr-08 2:46
mveCPallini22-Apr-08 2:46 
You're wrong. Comparison it's working well. If you need all the emails of April 2th (for instance) then you have to do something similar to:
startDate.ParseDateTime(_T("2/4/2008"), 0, lcidIt);
endDate.ParseDateTime(_T("3/4/2008"), 0, lcidIt);
mailDate.ParseDateTime(_T("4/2/2008 2:56:50 pm"), 0, lcidUS);

if ( mailDate >= startDate && mailDate < endDate)
{
  // mailDate is between startDate and endDate
}
else
{
  // mailDate is NOT between startDate and endDate
}


Since startDate actually represent "02/04/2008 00:00:00" and endDate is "03/04/2008 00:00:00".
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: How to Compare Two Date Pin
sharanu22-Apr-08 3:13
sharanu22-Apr-08 3:13 
GeneralRe: How to Compare Two Date Pin
CPallini22-Apr-08 3:30
mveCPallini22-Apr-08 3:30 
GeneralRe: How to Compare Two Date Pin
sharanu22-Apr-08 3:47
sharanu22-Apr-08 3:47 
GeneralRe: How to Compare Two Date Pin
CPallini22-Apr-08 3:53
mveCPallini22-Apr-08 3:53 
GeneralRe: How to Compare Two Date Pin
sharanu22-Apr-08 4:18
sharanu22-Apr-08 4:18 
QuestionTotal physical memory using GlobalMemoryStatus Pin
Ajay L D20-Apr-08 22:17
Ajay L D20-Apr-08 22:17 
GeneralRe: Total physical memory using GlobalMemoryStatus Pin
CPallini20-Apr-08 22:40
mveCPallini20-Apr-08 22:40 
GeneralRe: Total physical memory using GlobalMemoryStatus Pin
Ajay L D21-Apr-08 0:33
Ajay L D21-Apr-08 0:33 
GeneralPorting Code Windows to Unix - Make file query Pin
Andy20220-Apr-08 22:15
Andy20220-Apr-08 22:15 
QuestionRe: Porting Code Windows to Unix - Make file query Pin
David Crow21-Apr-08 4:19
David Crow21-Apr-08 4:19 
QuestionWhen does CDC::SaveDC() fail? Pin
Super Hornet20-Apr-08 22:09
Super Hornet20-Apr-08 22:09 
AnswerRe: When does CDC::SaveDC() fail? Pin
CPallini20-Apr-08 22:18
mveCPallini20-Apr-08 22:18 
GeneralRe: When does CDC::SaveDC() fail? Pin
Super Hornet21-Apr-08 1:54
Super Hornet21-Apr-08 1:54 
Questiondll problem unsolved Pin
trioum20-Apr-08 21:23
trioum20-Apr-08 21:23 
GeneralRe: dll problem unsolved Pin
CPallini20-Apr-08 21:30
mveCPallini20-Apr-08 21:30 
JokeRe: dll problem unsolved Pin
Rajesh R Subramanian20-Apr-08 21:33
professionalRajesh R Subramanian20-Apr-08 21:33 
GeneralRe: dll problem unsolved Pin
CPallini20-Apr-08 21:38
mveCPallini20-Apr-08 21:38 

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.