Menu
Learn
Documentation
Language Reference
Library Reference
Command-line Reference
Feature Overview
Articles
Downloads
Packages
Community
Blog
Orgs using D
Twitter
Calendar
Forums
IRC
Wiki
GitHub
Issues
Get involved
Contributors
Foundation
Donate
Sponsors
Resources
Tour
Books
Tutorials
Tools
Editors
IDEs
Visual D
Acknowledgments
D Style
Glossary
Sitemap
Search
Entire Site
Language
Library
Forums
Learn group
This thread
go
Forums
Forum Index
New users
Learn
Community
General
Announce
Improvements
DIP Ideas
DIP Devel.
Ecosystem
GDC
LDC
Debuggers
IDEs
DWT
Development
Internals
Issues
Beta
DMD
Phobos
Druntime
Study
Turkish
Genel
Duyuru
Log in
Settings
Help
Index
»
Learn
»
how to get the local?
»
Post reply
Warning: the post you are replying to is from 14 years ago (June 02, 2011).
Posting to
Learn
in reply to
Andrew Wiley
Your name:
Your email address (
?
):
Subject:
Message:
On Thursday, 2 June 2011 at 05:52:51 UTC, Andrew Wiley wrote: > On Thu, Jun 2, 2011 at 12:23 AM, Nick Sabalausky <a@a.a> wrote: > >> "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in >> message >> news:mailman.521.1306960464.14074.digitalmars-d-learn@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%.
Enable
Markdown
Copyright © 1999-2021 by the
D Language Foundation