Click here to Skip to main content
15,880,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Gettign value from console to MFC Pin
Rajesh R Subramanian12-Jul-10 3:46
professionalRajesh R Subramanian12-Jul-10 3:46 
QuestionCLineTracker and CRectTracker project arhitecture Pin
mesajflaviu12-Jul-10 1:48
mesajflaviu12-Jul-10 1:48 
QuestionHow to use arthimetic operation Pin
raju_shiva12-Jul-10 1:02
raju_shiva12-Jul-10 1:02 
AnswerRe: How to use arthimetic operation Pin
Aescleal12-Jul-10 1:26
Aescleal12-Jul-10 1:26 
AnswerRe: How to use arthimetic operation Pin
Cedric Moonen12-Jul-10 1:30
Cedric Moonen12-Jul-10 1:30 
GeneralRe: How to use arthimetic operation Pin
raju_shiva12-Jul-10 1:46
raju_shiva12-Jul-10 1:46 
GeneralRe: How to use arthimetic operation Pin
Cedric Moonen12-Jul-10 2:00
Cedric Moonen12-Jul-10 2:00 
GeneralRe: How to use arthimetic operation Pin
raju_shiva12-Jul-10 2:23
raju_shiva12-Jul-10 2:23 
Yes sir,i referred the link,which you had provided,
it was really helpful.thank you

I used this code to ghet the current date :

//Code to get the current date
COleDateTime  time;
    CString str;
    time=COleDateTime ::GetCurrentTime();
     str.Format("%d:%d:%d",time.GetDay(),time.GetMonth(),time.GetYear());


//code to get the diff between current and previous date

COleDateTime currentDate, PreviousDate;
currentDate.ParseDateTime(str, 0, MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT)); // str is current date()
PreviousDate.ParseDateTime(Junk, 0, MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT));
int j = currentDate - PreviousDate;
current date foormat is 12:7:2010
previous date format is 12-06-2010

Any idea where i am doing wrong


Thanks
Raj
GeneralRe: How to use arthimetic operation Pin
Cedric Moonen12-Jul-10 2:26
Cedric Moonen12-Jul-10 2:26 
AnswerRe: How to use arthimetic operation Pin
Maximilien12-Jul-10 1:31
Maximilien12-Jul-10 1:31 
QuestionFCB and BIOS file operations Pin
Jayapal Chandran12-Jul-10 0:28
Jayapal Chandran12-Jul-10 0:28 
AnswerRe: FCB and BIOS file operations Pin
Code-o-mat12-Jul-10 0:49
Code-o-mat12-Jul-10 0:49 
AnswerRe: FCB and BIOS file operations Pin
Aescleal12-Jul-10 1:09
Aescleal12-Jul-10 1:09 
GeneralRe: FCB and BIOS file operations Pin
Jayapal Chandran12-Jul-10 1:40
Jayapal Chandran12-Jul-10 1:40 
QuestionHow to solve this error information: "_WIN32_WINNT settings conflicts with _WIN32_IE setting" ?? Pin
wangningyu11-Jul-10 23:35
wangningyu11-Jul-10 23:35 
AnswerRe: How to solve this error information: "_WIN32_WINNT settings conflicts with _WIN32_IE setting" ?? Pin
Emilio Garavaglia12-Jul-10 0:02
Emilio Garavaglia12-Jul-10 0:02 
GeneralYes ,you're right ! Pin
wangningyu12-Jul-10 0:14
wangningyu12-Jul-10 0:14 
AnswerRe: How to solve this error information: "_WIN32_WINNT settings conflicts with _WIN32_IE setting" ?? Pin
asokan12327-Jun-11 18:34
asokan12327-Jun-11 18:34 
QuestionHow to find difference between two dates Pin
raju_shiva11-Jul-10 23:24
raju_shiva11-Jul-10 23:24 
AnswerRe: How to find difference between two dates Pin
Cedric Moonen11-Jul-10 23:31
Cedric Moonen11-Jul-10 23:31 
GeneralRe: How to find difference between two dates Pin
raju_shiva11-Jul-10 23:46
raju_shiva11-Jul-10 23:46 
GeneralRe: How to find difference between two dates Pin
Cedric Moonen11-Jul-10 23:49
Cedric Moonen11-Jul-10 23:49 
AnswerRe: How to find difference between two dates Pin
Niklas L11-Jul-10 23:31
Niklas L11-Jul-10 23:31 
AnswerRe: How to find difference between two dates Pin
Aescleal11-Jul-10 23:48
Aescleal11-Jul-10 23:48 
GeneralRe: How to find difference between two dates Pin
Le@rner12-Jul-10 2:25
Le@rner12-Jul-10 2:25 

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.