-1

I'm looking to take advantage of a number of globalization techniques within my Visual-C++ (C++/Cx) app for the Windows 8 store. More specifically, I thought I'd start with language-sensitive sorting. Within the documentation, it alludes to a set of APIs that help sort strings but it doesn't list which ones. Digging deeper, I found System.Globalization.CompareInfo for C# that does exactly what I want, but it doesn't seem to be available for C++. Does this support just plain not exist for C++ apps?

Perhaps the greater question here is this - is there a reliable set of docs that tell me the differences between Win 8 C# app APIs vs C++ app APIs?

Security Hound
  • 2,577
  • 3
  • 25
  • 42
Brent Traut
  • 5,614
  • 6
  • 29
  • 54

1 Answers1

1

You can find a fair amount of Globalization support in the Windows.Globalization namespace. This functionality is available to all the WinRT projection languages. Unfortunately there is no collation support in there except for character groupings. You can use the Win32 NLS apis (CompareStringEx)

Eric MSFT
  • 3,246
  • 1
  • 18
  • 28
  • CompareStringEx was what I needed. It was a gnarly API so I wrapped it in another utility function, and now it does exactly what I would expect C#'s CompareInfo to do. – Brent Traut Jan 27 '13 at 02:41