Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to calculate a date one moth before from Current date? Pin
Rajesh R Subramanian13-Oct-08 23:26
professionalRajesh R Subramanian13-Oct-08 23:26 
GeneralRe: How to calculate a date one moth before from Current date? Pin
megha_gharote13-Oct-08 23:30
megha_gharote13-Oct-08 23:30 
GeneralRe: How to calculate a date one moth before from Current date? Pin
Rajesh R Subramanian13-Oct-08 23:42
professionalRajesh R Subramanian13-Oct-08 23:42 
GeneralRe: How to calculate a date one moth before from Current date? Pin
Nelek14-Oct-08 0:47
protectorNelek14-Oct-08 0:47 
GeneralRe: How to calculate a date one moth before from Current date? Pin
Rajesh R Subramanian14-Oct-08 0:50
professionalRajesh R Subramanian14-Oct-08 0:50 
GeneralRe: How to calculate a date one moth before from Current date? Pin
Rajesh R Subramanian14-Oct-08 0:58
professionalRajesh R Subramanian14-Oct-08 0:58 
AnswerRe: How to calculate a date one moth before from Current date? [fixed] Pin
CPallini13-Oct-08 23:37
mveCPallini13-Oct-08 23:37 
AnswerRe: How to calculate a date one moth before from Current date? Pin
enhzflep13-Oct-08 23:46
enhzflep13-Oct-08 23:46 
SYSTEMTIME today, lastMonth;

// get current time and make a duplicate of the information
GetLocalTime(&today);
memcpy(&lastMonth, &today, sizeof(SYSTEMTIME));

// as long as it's not january, 1 month ago is still in this year
if (lastMonth.wMonth > 1)
    lastMonth.wMonth--;

// set month to december of last year
else
{
    lastMonth.wMonth = 12;
    lastMonth.wYear--;
}

GeneralRe: How to calculate a date one moth before from Current date? Pin
Rajesh R Subramanian13-Oct-08 23:49
professionalRajesh R Subramanian13-Oct-08 23:49 
GeneralRe: How to calculate a date one moth before from Current date? Pin
enhzflep13-Oct-08 23:57
enhzflep13-Oct-08 23:57 
GeneralRe: How to calculate a date one moth before from Current date? Pin
CPallini14-Oct-08 0:31
mveCPallini14-Oct-08 0:31 
GeneralRe: How to calculate a date one moth before from Current date? Pin
Rajesh R Subramanian14-Oct-08 0:39
professionalRajesh R Subramanian14-Oct-08 0:39 
AnswerRe: How to calculate a date one moth before from Current date? Pin
David Crow14-Oct-08 3:23
David Crow14-Oct-08 3:23 
QuestionSpeed problem in Excel sheet generation Pin
ilgale13-Oct-08 22:36
ilgale13-Oct-08 22:36 
AnswerRe: Speed problem in Excel sheet generation Pin
Roger Stoltz13-Oct-08 22:40
Roger Stoltz13-Oct-08 22:40 
GeneralRe: Speed problem in Excel sheet generation Pin
ilgale13-Oct-08 22:49
ilgale13-Oct-08 22:49 
GeneralRe: Speed problem in Excel sheet generation Pin
Rajesh R Subramanian13-Oct-08 23:16
professionalRajesh R Subramanian13-Oct-08 23:16 
GeneralRe: Speed problem in Excel sheet generation Pin
Roger Stoltz13-Oct-08 23:39
Roger Stoltz13-Oct-08 23:39 
JokeRe: Speed problem in Excel sheet generation Pin
CPallini13-Oct-08 22:47
mveCPallini13-Oct-08 22:47 
QuestionCompilation Error!!! undeclared variable :-( Pin
param_joshi13-Oct-08 22:10
param_joshi13-Oct-08 22:10 
AnswerRe: Compilation Error!!! undeclared variable :-( Pin
Saurabh.Garg13-Oct-08 23:42
Saurabh.Garg13-Oct-08 23:42 
AnswerRe: Compilation Error!!! undeclared variable :-( Pin
David Crow14-Oct-08 3:32
David Crow14-Oct-08 3:32 
GeneralRe: Compilation Error!!! undeclared variable :-( Pin
Jason Hamilton14-Oct-08 4:38
Jason Hamilton14-Oct-08 4:38 
QuestionGetPrinter function fails to retrieves the printer information. [modified] Pin
Gokul_md13-Oct-08 22:02
Gokul_md13-Oct-08 22:02 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
CPallini13-Oct-08 23:03
mveCPallini13-Oct-08 23:03 

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.