Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: End of Line using CFile (Unicode) Pin
Programm3r30-Aug-06 21:53
Programm3r30-Aug-06 21:53 
AnswerRe: End of Line using CFile (Unicode) Pin
toxcct30-Aug-06 21:56
toxcct30-Aug-06 21:56 
AnswerRe: End of Line using CFile (Unicode) Pin
Sitaram Sukumar30-Aug-06 22:55
Sitaram Sukumar30-Aug-06 22:55 
GeneralRe: End of Line using CFile (Unicode) Pin
toxcct31-Aug-06 0:18
toxcct31-Aug-06 0:18 
QuestionRe: End of Line using CFile (Unicode) Pin
David Crow31-Aug-06 7:49
David Crow31-Aug-06 7:49 
QuestionHow to compare Dates Pin
georgekjolly30-Aug-06 21:43
georgekjolly30-Aug-06 21:43 
AnswerRe: How to compare Dates Pin
Hamid_RT30-Aug-06 21:58
Hamid_RT30-Aug-06 21:58 
AnswerRe: How to compare Dates Pin
Steve Echols30-Aug-06 22:00
Steve Echols30-Aug-06 22:00 
Assuming you're using the COleDateTime in MFC you can subtract the 2 dates, which will return a COleDateTimeSpan object. Then you can use the GetDays function to see how many days the 2 dates span.

Like this:

COleDateTime date1(2006, 8, 28, 0, 0, 0);<br />
COleDateTime date2(2006, 8, 30, 0, 0, 0);<br />
<br />
COleDateTimeSpan span = date2 - date1;<br />
int numDays = span.GetDays();  // should return 3<br />




- S
50 cups of coffee and you know it's on!

AnswerRe: How to compare Dates Pin
Programm3r30-Aug-06 22:01
Programm3r30-Aug-06 22:01 
Questionhow to add digital sign to CAB file Pin
sunita ramesh30-Aug-06 21:07
sunita ramesh30-Aug-06 21:07 
AnswerRe: how to add digital sign to CAB file Pin
Mike Dimmick30-Aug-06 23:45
Mike Dimmick30-Aug-06 23:45 
GeneralRe: how to add digital sign to CAB file Pin
sunita ramesh31-Aug-06 0:11
sunita ramesh31-Aug-06 0:11 
GeneralRe: how to add digital sign to CAB file Pin
Mike Dimmick31-Aug-06 2:57
Mike Dimmick31-Aug-06 2:57 
Questionoperator new Pin
Waldermort30-Aug-06 20:59
Waldermort30-Aug-06 20:59 
AnswerRe: operator new Pin
Rinu_Raj30-Aug-06 21:35
Rinu_Raj30-Aug-06 21:35 
AnswerRe: operator new Pin
toxcct30-Aug-06 21:37
toxcct30-Aug-06 21:37 
GeneralRe: operator new Pin
Waldermort30-Aug-06 21:43
Waldermort30-Aug-06 21:43 
GeneralRe: operator new Pin
toxcct30-Aug-06 21:53
toxcct30-Aug-06 21:53 
GeneralRe: operator new Pin
Waldermort30-Aug-06 22:41
Waldermort30-Aug-06 22:41 
AnswerRe: operator new Pin
Rinu_Raj30-Aug-06 21:39
Rinu_Raj30-Aug-06 21:39 
Generalspeak english Pin
toxcct30-Aug-06 21:51
toxcct30-Aug-06 21:51 
GeneralRe: operator new Pin
Waldermort30-Aug-06 21:52
Waldermort30-Aug-06 21:52 
GeneralRe: operator new Pin
toxcct30-Aug-06 22:04
toxcct30-Aug-06 22:04 
Questionto add the custom color to menu instead on default color blue Pin
johnalek30-Aug-06 20:35
johnalek30-Aug-06 20:35 
AnswerRe: to add the custom color to menu instead on default color blue Pin
Waldermort30-Aug-06 21:02
Waldermort30-Aug-06 21:02 

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.