Click here to Skip to main content
15,895,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to use MFC class's object in static mehtod of a class Pin
Mushtaque Nizamani18-Feb-07 19:24
Mushtaque Nizamani18-Feb-07 19:24 
AnswerRe: How to use MFC class's object in static mehtod of a class Pin
prasad_som18-Feb-07 19:49
prasad_som18-Feb-07 19:49 
GeneralRe: How to use MFC class's object in static mehtod of a class Pin
Mushtaque Nizamani18-Feb-07 20:09
Mushtaque Nizamani18-Feb-07 20:09 
AnswerRe: How to use MFC class's object in static mehtod of a class Pin
prasad_som18-Feb-07 20:13
prasad_som18-Feb-07 20:13 
Questionhow to know the staus of cyberoam client Pin
sudhir.marni18-Feb-07 19:21
sudhir.marni18-Feb-07 19:21 
QuestionI want to change key into gujarati font can anybody help? [modified] Pin
Ritesh_Promact18-Feb-07 18:33
Ritesh_Promact18-Feb-07 18:33 
QuestionCalculating Age in days Pin
Charles Covington18-Feb-07 14:50
Charles Covington18-Feb-07 14:50 
AnswerRe: Calculating Age in days Pin
Christian Graus18-Feb-07 15:18
protectorChristian Graus18-Feb-07 15:18 
Charles Covington wrote:
age_days= age_years*daysInYear + st.wDay;


I believe you're adding the days from the years, and you're then adding the day of the week, when what you want to do is calculate the days in the months that have passed since the last birthday.

Also, 365.25 is not 100% accurate, but I'm sure you know that. It depends on when the first leap year was from the birthdate, and there's also an extra leap year every 100 years, I think.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

AnswerRe: Calculating Age in days Pin
Waldermort18-Feb-07 15:37
Waldermort18-Feb-07 15:37 
AnswerRe: Calculating Age in days Pin
David Crow18-Feb-07 16:24
David Crow18-Feb-07 16:24 
AnswerRe: Calculating Age in days Pin
#realJSOP19-Feb-07 0:17
mve#realJSOP19-Feb-07 0:17 
AnswerRe: Calculating Age in days Pin
Charles Covington19-Feb-07 5:44
Charles Covington19-Feb-07 5:44 
AnswerRe: Calculating Age in days Pin
cmk20-Feb-07 8:02
cmk20-Feb-07 8:02 
QuestionBetter HEX to INT conversion Pin
Llasus18-Feb-07 14:33
Llasus18-Feb-07 14:33 
AnswerRe: Better HEX to INT conversion Pin
Chris Losinger18-Feb-07 15:26
professionalChris Losinger18-Feb-07 15:26 
GeneralRe: Better HEX to INT conversion Pin
Llasus18-Feb-07 15:56
Llasus18-Feb-07 15:56 
QuestionWallpaper changer in MFC Pin
kubapl1818-Feb-07 9:07
kubapl1818-Feb-07 9:07 
AnswerRe: Wallpaper changer in MFC Pin
Mark Salsbery18-Feb-07 10:01
Mark Salsbery18-Feb-07 10:01 
AnswerRe: Wallpaper changer in MFC Pin
Rick York18-Feb-07 11:32
mveRick York18-Feb-07 11:32 
QuestionProblem with SetRect Pin
CoffeeAddict1918-Feb-07 8:45
CoffeeAddict1918-Feb-07 8:45 
AnswerRe: Problem with SetRect Pin
Mark Salsbery18-Feb-07 8:58
Mark Salsbery18-Feb-07 8:58 
GeneralRe: Problem with SetRect Pin
CoffeeAddict1918-Feb-07 9:11
CoffeeAddict1918-Feb-07 9:11 
GeneralRe: Problem with SetRect Pin
Mark Salsbery18-Feb-07 9:22
Mark Salsbery18-Feb-07 9:22 
GeneralRe: Problem with SetRect Pin
CoffeeAddict1918-Feb-07 9:38
CoffeeAddict1918-Feb-07 9:38 
GeneralRe: Problem with SetRect Pin
Mark Salsbery18-Feb-07 9:44
Mark Salsbery18-Feb-07 9:44 

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.