The GetCurrencyFormat function formats a number string as a currency string for a specified locale.
int GetCurrencyFormat(
LCID Locale, |
// locale for which currency string is to be formatted |
DWORD dwFlags, |
// bit flag that controls the function’s operation |
LPCTSTR lpValue, |
// pointer to input number string |
CONST CURRENCYFMT *lpFormat, |
// pointer to a formatting information structure |
LPTSTR lpCurrencyStr, |
// pointer to output buffer |
int cchCurrency |
// size of output buffer |
); |
This parameter can be a locale identifier created by the MAKELCID macro, or one of the following predefined values:
LOCALE_SYSTEM_DEFAULT |
Default system locale. |
LOCALE_USER_DEFAULT |
Default user locale. |
If lpFormat is NULL, you can specify the LOCALE_NOUSEROVERRIDE flag to
format the string using the system default currency format for the specified
locale; or you can specify zero to format the string using any user overrides
to the locale’s default currency format.
This string can contain only the following characters:
All other characters are invalid. The function returns an error if the string
pointed to by lpValue deviates from these rules.
If lpFormat is NULL, the function uses the currency format of the
specified locale.
If the function succeeds, the return value is the number of bytes (ANSI version) or characters (Unicode version) written to the buffer pointed to by lpCurrencyStr, or if the cchCurrency parameter is zero, the number of bytes or characters required to hold the formatted currency string.
If the function fails, the return value is zero. To get extended error information, call GetLastError. GetLastError may return one of the following error codes:
ERROR_INSUFFICIENT_BUFFER
ERROR_INVALID FLAGS
ERROR_INVALID_PARAMETER
file: /Techref/os/win/api/win32/func/src/f29_14.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/6 19:30,
44.192.67.10:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f29_14.htm"> GetCurrencyFormat</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.