Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetLocaleInfo et GetLocaleInfoEx (API)

Status
Not open for further replies.

vgulielmus

Programmer
Jan 27, 2014
522
RO
Recently I struggled with the currency symbol, for my copytoxlsx function and class. My goal was to get the user default setting, the ones from Control Panel -> Regional Settings. And so I had to deal with GetLocaleInfo and GetLocaleInfoEx.

GetLocaleInfo tends to become deprecated. It is ASCII oriented, but can be used in Windows XP and above.
GetLocaleInfoEx is UNICODE oriented, but cannot be used in Windows XP, only in Vista and above.

They look similar and give similar informations. GetLocaleInfo results are ASCII, while GetLocaleInfoEx are Unicode.

The main difference between functions signature is the first parameter. GetLocaleInfo accept a LONG, while GetLocaleInfoEx a string (pointer)

Because I didn't find any VFP example for GetLocaleInfoEx, I wrote this FAQ
Hope

Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top