how to get the local?

Nick Sabalausky a at a.a
Wed Jun 1 22:23:18 PDT 2011


"Andrej Mitrovic" <andrej.mitrovich at gmail.com> wrote in message 
news:mailman.521.1306960464.14074.digitalmars-d-learn at puremagic.com...
> >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?

Lloyd, if the program you're writing is designed to be sold or distributed 
to the public then I'd highly recommend against doing anything that requires 
at least Vista. From what I've heard, the adoption rates of Vista and Win7 
haven't been very good and about half of the Windows systems out there are 
still XP and pretty much holding there. A *lot* of Windows users are 
deliberately sticking with XP, and you'll be loosing a lot of people.

Of course, if your software is only designed to be used internally by some 
company, or just for you own use, etc., then obviously it doesn't matter...




More information about the Digitalmars-d-learn mailing list