On Thu, Jun 2, 2011 at 12:23 AM, Nick Sabalausky <a@a.a> wrote:
> "Andrej Mitrovic" <andrej.mitrov...@gmail.com> wrote in message > news:mailman.521.1306960464.14074.digitalmars-d-le...@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%.