how to get the local?
Andrew Wiley
wiley.andrew.j at gmail.com
Wed Jun 1 22:47:53 PDT 2011
On Thu, Jun 2, 2011 at 12:23 AM, Nick Sabalausky <a at a.a> wrote:
> "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...
>
>
> Actually, Windows 7 is growing somewhat exponentially and XP is falling,
though that fall isn't accelerating too rapidly. However, XP still sits at
around 45%.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20110602/b8064ea0/attachment.html>
More information about the Digitalmars-d-learn
mailing list