如题?
解决方案 »
- 一个msi安装包被执行后,如何得到这个msi安装包所在位置的路径?
- 别人公司里面有MFC做界面一般采用什么方式(求解)
- 22岁的第一天,找到了我的第一份工作 PHP的
- 静态连接和动态连接的速度比较?
- Com 的问题
- 急用!高分求用VC++写的毕业论文一份,如有需要还可附送10个无保QQ号,数据库什么的不限,论文主题通用性强点!
- 如何取得messagebox的窗口?
- 小弟要做毕业设计,请问有没有项目或建议(不要灌水)
- 如果我加了两个DLL文件的.lib,而这两个DLL包含一个同名同参数的函数时,当调用该函数时会执行哪个?
- VC中,怎样删除一个已有的类。
- 两个字符串的相似度是什么意思?
- 求一个函数,给20分,高手进!
CString Format( DWORD dwFlags = 0, LCID lcid = LANG_USER_DEFAULT );Return ValueA CString that contains the formatted currency value.ParametersdwFlagsIndicates flags for locale settings, possibly the following flag: LOCALE_NOUSEROVERRIDE Use the system default locale settings, rather than custom user settings.
lcidIndicates locale ID to use for the conversion.ResCall this member function to create a formatted representation of the currency value. It formats the value using the national language specifications (locale IDs). A currency symbol is not included in the value returned. If the status of this COleCurrency object is null, the return value is an empty string. If the status is invalid, the return string is specified by the string resource IDS_INVALID_CURRENCY.ExampleCOleCurrency curA; // value: 0.0000
curA.SetCurrency(4, 500); // value: 4.0500// value returned: 4.05
curA.Format(0, MAKELCID(MAKELANGID(LANG_CHINESE,
SUBLANG_CHINESE_SINGAPORE), SORT_DEFAULT));
// value returned: 4,05
curA.Format(0, MAKELCID(MAKELANGID(LANG_GERMAN,
SUBLANG_GERMAN_AUSTRIAN), SORT_DEFAULT));Note For a discussion of locale ID values, see the sectionSupporting Multiple National Languages in the Win32 SDK OLE Programmer’s Reference.
case adCurrency: //6
var->vt = VT_CY;
cy.Lo = atoi(strValue);
cy.int64 = atoi(strValue);
var->cyVal = cy;
break;currency to string:
case VT_CY:
var_currency = var;
strValue = var_currency.Format(0);
break;
这样哪里不对?