Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Wrapping MFC app in a ActiveX for embedding in Explorer Pin
l a u r e n21-Feb-01 11:05
l a u r e n21-Feb-01 11:05 
GeneralNo Modal Pin
21-Feb-01 0:57
suss21-Feb-01 0:57 
GeneralRe: No Modal Pin
21-Feb-01 2:28
suss21-Feb-01 2:28 
GeneralRe: No Modal Pin
21-Feb-01 3:55
suss21-Feb-01 3:55 
GeneralRe: No Modal Pin
l a u r e n21-Feb-01 7:03
l a u r e n21-Feb-01 7:03 
GeneralEaster Date Calculation Egg Pin
ColinDavies20-Feb-01 23:43
ColinDavies20-Feb-01 23:43 
GeneralRe: Easter Date Calculation Egg Pin
Tim Deveaux21-Feb-01 4:10
Tim Deveaux21-Feb-01 4:10 
GeneralRe: Easter Date Calculation Egg Pin
Tim Deveaux21-Feb-01 8:03
Tim Deveaux21-Feb-01 8:03 
I found this - from Gauss - apparently how its actually done for Easter Sunday:

CString strEaster;
ldiv_t ldResult;
int R1, R2, R3, R4, R5;

int Y = 2001;

ldResult = ldiv(Y,19);
R1 = ldResult.rem;

ldResult = ldiv(Y,4);
R2 = ldResult.rem;

ldResult = ldiv(Y,7);
R3 = ldResult.rem;

ldResult = ldiv((19*R1) + 24,30);
R4 = ldResult.rem;

ldResult = ldiv((2*R2)+(4*R3)+(6*R4)+5,7);
R5 = ldResult.rem;

if(R4 + R5 >=10)
    strEaster.Format("April %d", R4+R5-9);
else
    strEaster.Format("March %d", R4+R5+22);


Guess you could fiddle to get the Friday. For Greek Orthodox, I guess if you had the full rationale for the formula you could adapt it. Must be more interesting stuff on the web - just thought this was neat - apparently it even takes into account the lunar cycles I was on about. Wow. Gauss rulez.
QuestionDetecting Internet Connection? Pin
TomK20-Feb-01 23:27
TomK20-Feb-01 23:27 
AnswerRe: Detecting Internet Connection? Pin
Paolo Messina21-Feb-01 7:35
professionalPaolo Messina21-Feb-01 7:35 
QuestionHow to create service in Windows 98 Pin
Puneet Jain20-Feb-01 22:23
Puneet Jain20-Feb-01 22:23 
GeneralTSR programming Pin
20-Feb-01 21:59
suss20-Feb-01 21:59 
GeneralRe: TSR programming Pin
l a u r e n20-Feb-01 23:06
l a u r e n20-Feb-01 23:06 
GeneralPassing data from Document to a Modal Dialog Pin
20-Feb-01 21:51
suss20-Feb-01 21:51 
GeneralRe: Passing data from Document to a Modal Dialog Pin
Christian Graus20-Feb-01 23:26
protectorChristian Graus20-Feb-01 23:26 
GeneralScroll in CRichEditView Pin
LEE HO JUN20-Feb-01 21:49
LEE HO JUN20-Feb-01 21:49 
GeneralRe: Scroll in CRichEditView Pin
l a u r e n21-Feb-01 10:58
l a u r e n21-Feb-01 10:58 
GeneralRe: Scroll in CRichEditView Pin
LEE HO JUN21-Feb-01 14:01
LEE HO JUN21-Feb-01 14:01 
General%cpu usage per process on Win9x OS Pin
trilok_soni20-Feb-01 21:18
trilok_soni20-Feb-01 21:18 
GeneralWorking with IE Pin
Stefan Dahlin20-Feb-01 20:28
Stefan Dahlin20-Feb-01 20:28 
QuestionHow to get ip address & hostname? Pin
hahyojin20-Feb-01 20:08
hahyojin20-Feb-01 20:08 
AnswerRe: How to get ip address & hostname? Pin
Rene D20-Feb-01 20:16
Rene D20-Feb-01 20:16 
GeneralRe: How to get ip address & hostname? Pin
hahyojin20-Feb-01 20:38
hahyojin20-Feb-01 20:38 
GeneralRe: How to get ip address & hostname? Pin
Halid Niyaz25-Jan-02 2:41
Halid Niyaz25-Jan-02 2:41 
GeneralObject Orientated Nightmare Pin
Brendan Tregear20-Feb-01 14:03
Brendan Tregear20-Feb-01 14: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.