how to get the local?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Jun 1 13:34:15 PDT 2011


>From my understanding of this page
http://msdn.microsoft.com/en-us/library/dd318136%28v=vs.85%29.aspx :

"Note  The application should call this function in preference to
GetUserDefaultLCID if designed to run only on Windows Vista and
later."

It's not in kernel32.lib distributed with DMD. You would have to
create an OMF import lib by calling implib /system kernel32.dll (your
own kernel32.dll) if you're actually using Vista or a newer OS and
then linking with that. But you can say goodbye to supporting Windows
older than Vista.

OTOH GetUserDefaultLCID /is/ in the kernel32.lib distributed with DMD.
So why not use that?


More information about the Digitalmars-d-learn mailing list