Click here to Skip to main content
15,885,244 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht26-Feb-12 22:31
bjorn_ht26-Feb-12 22:31 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa27-Feb-12 0:38
shanmugarajaa27-Feb-12 0:38 
SuggestionRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa27-Feb-12 17:49
shanmugarajaa27-Feb-12 17:49 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht28-Feb-12 21:38
bjorn_ht28-Feb-12 21:38 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa28-Feb-12 2:41
shanmugarajaa28-Feb-12 2:41 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht28-Feb-12 21:46
bjorn_ht28-Feb-12 21:46 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
David Crow24-Feb-12 3:18
David Crow24-Feb-12 3:18 
QuestionLeap year algorithm Pin
marca29223-Feb-12 20:52
marca29223-Feb-12 20:52 
Hi,
I want to have a fast algorithm to determine if it’s leap year, is this a good one?

C++
bool isLeapYear(int year)
{
    bool leapYear = year%4 == 0 && (year %100 != 0 || year%400 == 0;
    return leapYear;
}


Thanks!
AnswerRe: Leap year algorithm Pin
Jochen Arndt23-Feb-12 21:14
professionalJochen Arndt23-Feb-12 21:14 
AnswerRe: Leap year algorithm Pin
CPallini23-Feb-12 21:51
mveCPallini23-Feb-12 21:51 
GeneralRe: Leap year algorithm Pin
SandipG 23-Feb-12 23:26
SandipG 23-Feb-12 23:26 
GeneralRe: Leap year algorithm Pin
CPallini23-Feb-12 23:31
mveCPallini23-Feb-12 23:31 
GeneralRe: Leap year algorithm Pin
SandipG 23-Feb-12 23:35
SandipG 23-Feb-12 23:35 
AnswerRe: Leap year algorithm Pin
SandipG 23-Feb-12 23:23
SandipG 23-Feb-12 23:23 
AnswerRe: Leap year algorithm Pin
Stephen Hewitt24-Feb-12 0:46
Stephen Hewitt24-Feb-12 0:46 
Questionabout GetWindow function Pin
xrg_soft@163.com23-Feb-12 15:25
xrg_soft@163.com23-Feb-12 15:25 
AnswerRe: about GetWindow function Pin
Chris Losinger23-Feb-12 15:48
professionalChris Losinger23-Feb-12 15:48 
GeneralRe: about GetWindow function Pin
xrg_soft@163.com23-Feb-12 22:41
xrg_soft@163.com23-Feb-12 22:41 
AnswerRe: about GetWindow function Pin
ThatsAlok23-Feb-12 19:37
ThatsAlok23-Feb-12 19:37 
GeneralRe: about GetWindow function Pin
xrg_soft@163.com23-Feb-12 22:45
xrg_soft@163.com23-Feb-12 22:45 
GeneralRe: about GetWindow function Pin
ThatsAlok27-Feb-12 1:59
ThatsAlok27-Feb-12 1:59 
Questionc++, win32, optionalfeatures.exe, how it knows if a feature is installed, Data location Pin
jkirkerx23-Feb-12 10:28
professionaljkirkerx23-Feb-12 10:28 
AnswerRe: c++, win32, optionalfeatures.exe, how it knows if a feature is installed, Data location Pin
Randor 23-Feb-12 19:19
professional Randor 23-Feb-12 19:19 
GeneralRe: c++, win32, optionalfeatures.exe, how it knows if a feature is installed, Data location Pin
Peter_in_278023-Feb-12 19:39
professionalPeter_in_278023-Feb-12 19:39 
GeneralRe: c++, win32, optionalfeatures.exe, how it knows if a feature is installed, Data location Pin
jkirkerx23-Feb-12 21:20
professionaljkirkerx23-Feb-12 21:20 

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.