Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get the whole URLs form the intetnet shortcuts(the file in c:\windows\history)? Pin
Nish Nishant1-Mar-02 23:00
sitebuilderNish Nishant1-Mar-02 23:00 
AnswerRe: how to get the whole URLs form the intetnet shortcuts(the file in c:\windows\history)? Pin
2-Mar-02 0:23
suss2-Mar-02 0:23 
QuestionDeriving classes thru ClassWizard? Pin
Maverick1-Mar-02 21:42
Maverick1-Mar-02 21:42 
AnswerRe: Deriving classes thru ClassWizard? Pin
Mazdak1-Mar-02 21:52
Mazdak1-Mar-02 21:52 
AnswerRe: Deriving classes thru ClassWizard? Pin
Tomasz Sowinski2-Mar-02 1:44
Tomasz Sowinski2-Mar-02 1:44 
GeneralRe: Deriving classes thru ClassWizard? Pin
Maverick2-Mar-02 3:14
Maverick2-Mar-02 3:14 
GeneralRe: Deriving classes thru ClassWizard? Pin
14-Mar-02 23:38
suss14-Mar-02 23:38 
GeneralProblem in Hijri date in Win2000 ! Pin
Hadi Rezaee1-Mar-02 20:12
Hadi Rezaee1-Mar-02 20:12 
Hi all,
I'm writting a program on Win2000 OS.
I have a strange problem in my program, it is about getting Hijri date from OS.
In first i must tell you something about Hijri calendars.
For example today is 2002/02/03 (yyyy/dd/mm) in English calendars ...
Today is 1422/12/17 (yyyy/mm/dd) in Arabic calendars ...
And i must tell you that some Arabic calendars have some difference with togethers ...
For example, probably Windows show you 1422/12/18 !!!
For solving this, Microsoft predicted a tools in Ragional Options which called Adjust Hijri date to: ......
In this list you can solve a few problems ...
In this list you can see:

1422/12/15
1422/12/16
1422/12/17 <--- right date !
1422/12/18
1422/12/19
1422/12/20

Well, first i changed my caledar to Hijri Calendar from Regional Options.
and i solved the problem in Hijri date (by Adjust Hijri date to: ......).
Now, my computer show right Hijri date.

Let me tell you about my source code.

I'm using of this code for getting Hijri date:

CString GetHijriDate()
{

// This function uses for converting English date to Hijri date !

SYSTEMTIME st;
GetLocalTime(&st);

DATE dt;
SystemTimeToVariantTime(&st, &dt);

BSTR bsValue;
VarBstrFromDate(dt, NULL, VAR_CALENDAR_HIJRI | VAR_DATEVALUEONLY, &bsValue);

CString strResult(bsValue);
return strResult;
}

But unfortunly, my program return 1422/12/18 still !!!!!
That must return 1422/12/17 Frown | :(
What is the wrong ?!
Is there any other way for getting right Hijri date ?

Help me, please Frown | :(


My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralA small tip for capturing focus in Win2K Pin
Nish Nishant1-Mar-02 19:40
sitebuilderNish Nishant1-Mar-02 19:40 
GeneralBeginning MFC (Prosise) Part III - Now What? :: C++ Pin
valikac1-Mar-02 14:49
valikac1-Mar-02 14:49 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Nish Nishant1-Mar-02 14:57
sitebuilderNish Nishant1-Mar-02 14:57 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Christian Graus1-Mar-02 15:32
protectorChristian Graus1-Mar-02 15:32 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
valikac1-Mar-02 16:03
valikac1-Mar-02 16:03 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Christian Graus1-Mar-02 16:19
protectorChristian Graus1-Mar-02 16:19 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Nish Nishant1-Mar-02 16:35
sitebuilderNish Nishant1-Mar-02 16:35 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
valikac1-Mar-02 17:34
valikac1-Mar-02 17:34 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Christian Graus1-Mar-02 17:49
protectorChristian Graus1-Mar-02 17:49 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
valikac1-Mar-02 18:01
valikac1-Mar-02 18:01 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Christian Graus1-Mar-02 19:53
protectorChristian Graus1-Mar-02 19:53 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Nish Nishant1-Mar-02 19:58
sitebuilderNish Nishant1-Mar-02 19:58 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Christian Graus1-Mar-02 20:17
protectorChristian Graus1-Mar-02 20:17 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Nish Nishant1-Mar-02 20:25
sitebuilderNish Nishant1-Mar-02 20:25 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Nish Nishant1-Mar-02 20:26
sitebuilderNish Nishant1-Mar-02 20:26 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Christian Graus1-Mar-02 20:27
protectorChristian Graus1-Mar-02 20:27 
GeneralRe: Beginning MFC (Prosise) Part III - Now What? :: C++ Pin
Nish Nishant1-Mar-02 20:42
sitebuilderNish Nishant1-Mar-02 20:42 

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.