hi
I have an application calendar using GetDateFormat ,GetSystemTime. and I'm trying to
change the day names to display always English names for other languages, I tried to change LOCALE_SDAYNAME without success .
Any idea?
Thanks for all
The first parameter to GetDateFormat takes a locale-id -- this says which language to give the date in. So I assume if you say you want the date in english, then that is what it will give you?
..unless you want the date in the user's locale format, but with the day names in english, then in you're in for some fun :bdg
hi
sorry for my poor english.
I want some thing like "ctime" ,
#include <stdio.h>
#include <time.h>
int main()
{
time_t tm;
tm = time(NULL);
printf(ctime(&tm));
return 0;
}
the output is in english language :
Wed Aug 09 16:41:56 2006
with GetDateFormat i have a French names output
Mer Aou 09 16:41:56 2006
because I use frenche windows
thanks
Give this a try:
mov eax,SUBLANG_ENGLISH_US
shl eax,10
or eax,LANG_ENGLISH
mov edx,SORT_DEFAULT
shl edx,16
or eax,edx
mov English_Identifier,eax
or you can simply use 0409h for your first parameter. :8)
HTH,
Darrel
thanks Darrel :thumbu!!
ctime gives the names in english because the english names are saved in the exe and that is the list used, not the names provided by windows :wink
hi
there are no names of month saved in .exe, you can check by compiling and débuging the code ....
moreover with :
invoke GetDateFormat, 0409h, 0 , addr lpDate, addr lpFormat, addr lpDateStr,MAX_DATE_LEN
i have english names
thanks
Then it uses the crt (c runtime) library - so the names are stored in a .dll
The reason is still the same - the names in that dll are the english ones.