Article View: borland.public.cppbuilder.nativeapi
Article #14130Re: Calendar ID
From: Edward Diener
Date: Thu, 28 Aug 2003 01:05
Date: Thu, 28 Aug 2003 01:05
33 lines
2555 bytes
2555 bytes
Remy Lebeau (TeamB) wrote: > "Edward Diener" <eddielee@tropicsoft.com> wrote in message > news:3f4d468d@newsgroups.borland.com... >> Where does one get a CALID, a calendar identifier, from >> for the call to GetCalendarInfo ? It is the second parameter. > > Refer to the winnls.h file. There is a section lebeled "Calendar ID > Values" which is a list of the supported Calendar IDs, such as > CAL_GREGORIAN. Ah yes, I see that now. > >> Is this the same value as the return from GetLocaleInfo >> using LOCALE_ICALENDARTYPE ? > > No, that is the Calendar *Type* that is used for the third parameter. > That is not the Calendar *ID*. No. it is actually the calendar ID. If you look at the winnls.h file you mention above under "Calendar ID Values" and you look at the possible return values from LOCALE_ICALENDARTYPE under "Locale Information", they are exactly the same. Don't ask me why the names are confusing. It seems that LOCALE_ICALENDARTYPE should have been called LOCALE_ICALENDARID. The Calendar Type values are actually explained, at least in MSDN, under a topic called "Calendar Type Information", and refer to the values also found in winnls.h under "Calendar Types". Thanks for your help. I must remember to look at header files when the normal documentation fails me. I am still unuse to seeing, after these many years, explanations as comments in header files which I think I should find in help files.
Technical Details
Message-ID:
<3f4d5539$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!wn14feed!wn13feed!wn11feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f4d468d@newsgroups.borland.com> <3f4d4f38$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,82c32fb372dc0e7c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-27 18:09:29 PST From: "Edward Diener" <eddielee@tropicsoft.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f4d468d@newsgroups.borland.com> <3f4d4f38$1@newsgroups.borland.com> Subject: Re: Calendar ID Date: Wed, 27 Aug 2003 21:05:00 -0400 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 216.175.67.77 Message-ID: <3f4d5539$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062032697 216.175.67.77 (27 Aug 2003 18:04:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!wn14feed!wn13feed!wn11feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail