Click here to Skip to main content
15,918,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Any method to getting notified on the Starting or Exiting of a particular process. Pin
VCSharp00727-Jan-09 22:44
VCSharp00727-Jan-09 22:44 
Questionsplitter window in dialog based application Pin
AnithaSubramani27-Jan-09 20:34
AnithaSubramani27-Jan-09 20:34 
AnswerRe: splitter window in dialog based application Pin
Hamid_RT27-Jan-09 20:46
Hamid_RT27-Jan-09 20:46 
Questionwhat's the different between an ICON within an EXE (PE) file and a *.ico file? Pin
Joseph Marzbani27-Jan-09 20:07
Joseph Marzbani27-Jan-09 20:07 
AnswerRe: what's the different between an ICON within an EXE (PE) file and a *.ico file? Pin
Hamid_RT27-Jan-09 20:31
Hamid_RT27-Jan-09 20:31 
GeneralRe: what's the different between an ICON within an EXE (PE) file and a *.ico file? Pin
Joseph Marzbani27-Jan-09 21:12
Joseph Marzbani27-Jan-09 21:12 
AnswerRe: what's the different between an ICON within an EXE (PE) file and a *.ico file? Pin
CPallini27-Jan-09 21:33
mveCPallini27-Jan-09 21:33 
QuestionCalculate Date Difference in months Pin
AksharRoop27-Jan-09 19:53
AksharRoop27-Jan-09 19:53 
Hi All,

I am writing one function that should return me a difference between given dates in months. I know it can easily be done by getting difference in years, months and days. Then calculate months like

trmMonths = 0;
trmMonths += years * 12;
trmMonths += months;

But i am not sure about what to do with days, because sometimes it may happen that difference between dates would be years = 1 months = 11 days = 28. in this case the difference between dates should be 24months.

Can anyone give me idea on how days can be handled here to get accurate difference?

Thanks,
AksharRoop
AnswerRe: Calculate Date Difference in months Pin
Cedric Moonen27-Jan-09 20:20
Cedric Moonen27-Jan-09 20:20 
QuestionRadio Button issue in RTL Layout Pin
Alex@9C27-Jan-09 19:51
Alex@9C27-Jan-09 19:51 
QuestionCreateprocess and set the window position Pin
Super Hornet27-Jan-09 19:20
Super Hornet27-Jan-09 19:20 
Questionadding wav header using vc++ Pin
hrishiS27-Jan-09 18:30
hrishiS27-Jan-09 18:30 
AnswerRe: adding wav header using vc++ Pin
Naveen27-Jan-09 19:05
Naveen27-Jan-09 19:05 
AnswerRe: adding wav header using vc++ Pin
Nishad S27-Jan-09 19:26
Nishad S27-Jan-09 19:26 
Questionvisual style and colors for dialog boxes and controls placed on it. Pin
Taruni27-Jan-09 18:17
Taruni27-Jan-09 18:17 
Questioncontext menu.? Pin
sam_psycho27-Jan-09 17:43
sam_psycho27-Jan-09 17:43 
AnswerRe: context menu.? Pin
Nishad S27-Jan-09 18:11
Nishad S27-Jan-09 18:11 
GeneralRe: context menu.? Pin
sam_psycho27-Jan-09 18:24
sam_psycho27-Jan-09 18:24 
GeneralRe: context menu.? Pin
Nishad S27-Jan-09 18:31
Nishad S27-Jan-09 18:31 
GeneralRe: context menu.? Pin
sam_psycho27-Jan-09 18:35
sam_psycho27-Jan-09 18:35 
Questionquestion about my project.... Pin
arad.moradi27-Jan-09 9:55
arad.moradi27-Jan-09 9:55 
AnswerCP Ignore this post (impatient user, homework, double posting) Pin
Garth J Lancaster27-Jan-09 11:22
professionalGarth J Lancaster27-Jan-09 11:22 
QuestionRe: question about my project.... Pin
David Crow28-Jan-09 16:41
David Crow28-Jan-09 16:41 
Questionquestion about my project....... Pin
arad.moradi27-Jan-09 9:39
arad.moradi27-Jan-09 9:39 
AnswerRe: question about my project....... Pin
Reagan Conservative27-Jan-09 11:09
Reagan Conservative27-Jan-09 11:09 

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.