Click here to Skip to main content
15,887,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: find diffrence between current time and birthday as a number of days. Pin
Chris Losinger10-May-11 7:43
professionalChris Losinger10-May-11 7:43 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
quartaela10-May-11 7:47
quartaela10-May-11 7:47 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
Chris Losinger10-May-11 7:51
professionalChris Losinger10-May-11 7:51 
AnswerRe: find diffrence between current time and birthday as a number of days. Pin
Richard MacCutchan10-May-11 7:54
mveRichard MacCutchan10-May-11 7:54 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
quartaela10-May-11 8:04
quartaela10-May-11 8:04 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
Richard MacCutchan10-May-11 8:32
mveRichard MacCutchan10-May-11 8:32 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
quartaela10-May-11 11:57
quartaela10-May-11 11:57 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
Richard MacCutchan10-May-11 12:03
mveRichard MacCutchan10-May-11 12:03 
quartaela wrote:
but the problem is i read the birthday string

As I said before you will need to convert the string to its constituent numbers using strtoi() (sorry not strtod()) and then use those numbers to populate a tm structure from which you can get the time_t value via mktime(). The documentation for all these functions is available on MSDN starting here[^]. This may all sound long and involved but I'm afraid that is the reality of programming.
The best things in life are not things.

GeneralRe: find diffrence between current time and birthday as a number of days. Pin
quartaela10-May-11 12:46
quartaela10-May-11 12:46 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
Richard MacCutchan10-May-11 13:03
mveRichard MacCutchan10-May-11 13:03 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
quartaela10-May-11 14:41
quartaela10-May-11 14:41 
QuestionRe: find diffrence between current time and birthday as a number of days. Pin
David Crow10-May-11 15:32
David Crow10-May-11 15:32 
AnswerRe: find diffrence between current time and birthday as a number of days. [modified] Pin
Luc Pattyn10-May-11 8:16
sitebuilderLuc Pattyn10-May-11 8:16 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
Ram Shelke10-May-11 19:53
Ram Shelke10-May-11 19:53 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
Le@rner10-May-11 21:11
Le@rner10-May-11 21:11 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
quartaela11-May-11 10:57
quartaela11-May-11 10:57 
AnswerRe: find diffrence between current time and birthday as a number of days. Pin
Luc Pattyn11-May-11 0:05
sitebuilderLuc Pattyn11-May-11 0:05 
GeneralRe: find diffrence between current time and birthday as a number of days. Pin
quartaela11-May-11 11:02
quartaela11-May-11 11:02 
AnswerRe: find diffrence between current time and birthday as a number of days. Pin
turboscrew16-May-11 23:02
turboscrew16-May-11 23:02 
QuestionGetting the User Name for a Process Pin
Rajesh_Parameswaran10-May-11 5:23
Rajesh_Parameswaran10-May-11 5:23 
AnswerRe: Getting the User Name for a Process Pin
Mark Salsbery10-May-11 10:46
Mark Salsbery10-May-11 10:46 
GeneralRe: Getting the User Name for a Process Pin
Rajesh_Parameswaran10-May-11 14:52
Rajesh_Parameswaran10-May-11 14:52 
Questionstring combination Pin
john56329-May-11 20:20
john56329-May-11 20:20 
QuestionRe: string combination Pin
Niklas L9-May-11 21:03
Niklas L9-May-11 21:03 
AnswerRe: string combination Pin
john56329-May-11 21:28
john56329-May-11 21:28 

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.