how to get the local?

Lloyd Dupont ld-REMOVE at galador.net
Wed Jun 1 07:31:45 PDT 2011


I tried to add that to my D file
===
public import std.c.windows.windows;

extern(Windows)
{
    int GetUserDefaultLocaleName(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