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@8 C:\Dev\DTest\DTest1\Dexperiment\

Any clues?


"Lloyd Dupont"  wrote in message news:is5gm7$1a8u$1...@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?

Reply via email to