how to get the local?
Don
nospam at nospam.com
Wed Jun 1 08:11:40 PDT 2011
Lloyd Dupont wrote:
> I tried to add that to my D file
> ===
> public import std.c.windows.windows;
>
> extern(Windows)
> {
> int GetUserDefaultLocaleName(LPWSTR lpLocaleName, int cchLocaleName);
> }
> ===
Try:
extern(Windows)
{
int GetUserDefaultLocaleNameW(LPWSTR lpLocaleName, int cchLocaleName);
}
> and compile and link to kernel32.lib
>
> But I got the following compile error:
> Error 1 Error 42: Symbol Undefined _GetUserDefaultLocaleName at 8
> C:\Dev\DTest\DTest1\Dexperiment\
>
> Any clues?
>
>
> "Lloyd Dupont" wrote in message news:is5gm7$1a8u$1 at digitalmars.com...
>
> I'm on a windows PC in Australia
> I'd like to get the string "en-AU" and "en" from Windows....
> How do I do that please?
More information about the Digitalmars-d-learn
mailing list