<div class="gmail_quote">On Thu, Jun 2, 2011 at 12:23 AM, Nick Sabalausky <span dir="ltr"><a@a.a></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

"Andrej Mitrovic" <<a href="mailto:andrej.mitrovich@gmail.com">andrej.mitrovich@gmail.com</a>> wrote in message<br>
news:mailman.521.1306960464.14074.digitalmars-d-learn@puremagic.com...<br>
<div><div></div><div class="h5">> >From my understanding of this page<br>
> <a href="http://msdn.microsoft.com/en-us/library/dd318136%28v=vs.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/dd318136%28v=vs.85%29.aspx</a> :<br>
><br>
> "Note  The application should call this function in preference to<br>
> GetUserDefaultLCID if designed to run only on Windows Vista and<br>
> later."<br>
><br>
> It's not in kernel32.lib distributed with DMD. You would have to<br>
> create an OMF import lib by calling implib /system kernel32.dll (your<br>
> own kernel32.dll) if you're actually using Vista or a newer OS and<br>
> then linking with that. But you can say goodbye to supporting Windows<br>
> older than Vista.<br>
><br>
> OTOH GetUserDefaultLCID /is/ in the kernel32.lib distributed with DMD.<br>
> So why not use that?<br>
<br>
</div></div>Lloyd, if the program you're writing is designed to be sold or distributed<br>
to the public then I'd highly recommend against doing anything that requires<br>
at least Vista. From what I've heard, the adoption rates of Vista and Win7<br>
haven't been very good and about half of the Windows systems out there are<br>
still XP and pretty much holding there. A *lot* of Windows users are<br>
deliberately sticking with XP, and you'll be loosing a lot of people.<br>
<br>
Of course, if your software is only designed to be used internally by some<br>
company, or just for you own use, etc., then obviously it doesn't matter...<br>
<br>
<br>
</blockquote></div>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%.