Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to calculate diffrence of two dates? Pin
Le@rner11-May-08 20:08
Le@rner11-May-08 20:08 
AnswerRe: How to calculate diffrence of two dates? Pin
Mark Salsbery11-May-08 20:22
Mark Salsbery11-May-08 20:22 
GeneralRe: How to calculate diffrence of two dates? Pin
Le@rner11-May-08 20:49
Le@rner11-May-08 20:49 
GeneralRe: How to calculate diffrence of two dates? [modified] Pin
Rajkumar R11-May-08 21:03
Rajkumar R11-May-08 21:03 
GeneralRe: How to calculate diffrence of two dates? Pin
Le@rner11-May-08 21:20
Le@rner11-May-08 21:20 
QuestionRe: How to calculate diffrence of two dates? Pin
Mark Salsbery12-May-08 5:13
Mark Salsbery12-May-08 5:13 
AnswerRe: How to calculate diffrence of two dates? Pin
Le@rner12-May-08 18:13
Le@rner12-May-08 18:13 
GeneralRe: How to calculate diffrence of two dates? Pin
Mark Salsbery13-May-08 5:05
Mark Salsbery13-May-08 5:05 
ThatsMe. wrote:
/m_no_ofday CString type variable of Edit Box.


By that I'm assuming you mean m_no_ofday is a CString attached to the edit
control through the MFC DDX system....

If that's the case, you could just convert the int to that string and call UpdateData()
to move the string contents to the edit control:

COleDateTimeSpan daydiff=(COleDateTime m_date1-COleDateTime m_date2);
int noofday=(int)daydiff.GetTotalDays();
noofday++;
m_no_ofday.Format("%d",noofday);
UpdateData(FALSE);

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: How to calculate diffrence of two dates? Pin
CPallini11-May-08 21:34
mveCPallini11-May-08 21:34 
QuestionHow can i Install TTF font through program using VC++ Pin
phanindra varma11-May-08 19:43
phanindra varma11-May-08 19:43 
AnswerRe: How can i Install TTF font through program using VC++ Pin
ShilpiP11-May-08 19:54
ShilpiP11-May-08 19:54 
GeneralRe: How can i Install TTF font through program using VC++ Pin
phanindra varma1-Jun-08 22:09
phanindra varma1-Jun-08 22:09 
AnswerRe: How can i Install TTF font through program using VC++ Pin
Hamid_RT11-May-08 20:05
Hamid_RT11-May-08 20:05 
GeneralRe: How can i Install TTF font through program using VC++ Pin
phanindra varma12-May-08 0:39
phanindra varma12-May-08 0:39 
QuestionHow can i Install TTF font through program Pin
phanindra varma11-May-08 19:41
phanindra varma11-May-08 19:41 
AnswerRe: How can i Install TTF font through program Pin
Sarath C11-May-08 21:11
Sarath C11-May-08 21:11 
QuestionWindowFromDC is returning null when application is in background Pin
V K 211-May-08 19:21
V K 211-May-08 19:21 
AnswerRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 20:05
Hamid_RT11-May-08 20:05 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 20:11
V K 211-May-08 20:11 
GeneralRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 20:17
Hamid_RT11-May-08 20:17 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 20:25
V K 211-May-08 20:25 
GeneralRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 20:44
Hamid_RT11-May-08 20:44 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 20:54
V K 211-May-08 20:54 
GeneralRe: WindowFromDC is returning null when application is in background Pin
Hamid_RT11-May-08 21:06
Hamid_RT11-May-08 21:06 
GeneralRe: WindowFromDC is returning null when application is in background Pin
V K 211-May-08 22:08
V K 211-May-08 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.