I hope this is the right group for this posting.
Our app has been ported from VC++ 6.0 (MFC) to DevStudio 2005 as unmanaged
code. Since then we've been experiencing an odd problem. When we open a
dialog that displays floating point numbers, the numbers are not displayed in
the proper regional format (e.g., using',' instead of '.'). However, if we
click on one of the edit boxes and then click off, it then displays the
number in the proper format. Dates and time, however, always appear in the
proper format. I've tracked one instance of the problem down to a call to
CString.Format() and then to a call to _cfltcvt_l() where the floating point
conversion is done. Any ideas what could be going wrong? Could it be some
preprocessor definition that needs to be added or removed? Some
initialization call that has to be made on the app? Is it some eccentricity
with MFC unmanaged code?
Thanks for any insights.

Signature
ard
Michael S. Kaplan [MSFT] - 01 Mar 2007 10:13 GMT
Not all of the CRT control uses Regional and Language Options settings. If
you want to get the settings, you have to call functions from the NLS API
such as GetNumberFormat and GetDateFormat in some cases.

Signature
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap
This posting is provided "AS IS" with
no warranties, and confers no rights.
>I hope this is the right group for this posting.
>
[quoted text clipped - 18 lines]
>
> Thanks for any insights.