getting currency format info
-
GetCurrencyFormat()
/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
GetCurrencyFormat()
/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
But I need the locale info for the CURRENCYFMT struct. I want to get the user's locale settings for the CURRENCYFMT structure, change some of the members (lpCurrencySymbol, NegativeOrder) and then call GetCurrencyFormat().
-
Passing NULL for the Locale arg seems to stall the program. I'm not sure if I'm explaining my problem right. I don't just want to format a string with the user's locale settings. I want to get the the locale setting values for the CURRENCYFMT members, but then change some of the settings, and then call GetCurrencyFormat() to format the string. I may just be missing it, but I don't see anywhere in the documentation where GetCurrencyFormat() fills a CURRENCYFMT struct with the user's locale settings...
-
Passing NULL for the Locale arg seems to stall the program. I'm not sure if I'm explaining my problem right. I don't just want to format a string with the user's locale settings. I want to get the the locale setting values for the CURRENCYFMT members, but then change some of the settings, and then call GetCurrencyFormat() to format the string. I may just be missing it, but I don't see anywhere in the documentation where GetCurrencyFormat() fills a CURRENCYFMT struct with the user's locale settings...
Ah. This[^] page contains a code fragment that shows how to modify the locale's default currency symbol and pass the modified format to
GetCurrencyFormat()
. See the paragraph starting with "Another scenario would be ...". Hope this helps. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com -
Ah. This[^] page contains a code fragment that shows how to modify the locale's default currency symbol and pass the modified format to
GetCurrencyFormat()
. See the paragraph starting with "Another scenario would be ...". Hope this helps. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com