CDuiString 用法详解
来源:互联网 发布:php做app 编辑:程序博客网 时间:2024/06/08 19:27
CDuiString 用法详解:
1 Append(LPCTSTR str) 在原字符串基础上追加一个字符串;
CDuiString dui_str;
dui_str.Append(_T("我是中国人!"));
dui_str.Append(_T("我爱中国!"));
//我是中国人!我爱中国!
2 Assign(LPCSTR pstr ,int nLength ) 在pstr字符串的nLength位置后的东西全部剪切掉不要;
config.Assign(config, config.GetLength()-1);
//我是中国人!我爱中国
3 Format(LPCSTR pstrformat, ...); 按照pstrformat字符串的格式,导入其他类型变量
CDuiString folde_path;
folde_path.Format(_T("%ls"), std_string);
4 GetLength()采集一个变量的宽度(大小);
config.GetLength();
1 Append(LPCTSTR str) 在原字符串基础上追加一个字符串;
CDuiString dui_str;
dui_str.Append(_T("我是中国人!"));
dui_str.Append(_T("我爱中国!"));
//我是中国人!我爱中国!
2 Assign(LPCSTR pstr ,int nLength ) 在pstr字符串的nLength位置后的东西全部剪切掉不要;
config.Assign(config, config.GetLength()-1);
//我是中国人!我爱中国
3 Format(LPCSTR pstrformat, ...); 按照pstrformat字符串的格式,导入其他类型变量
CDuiString folde_path;
folde_path.Format(_T("%ls"), std_string);
4 GetLength()采集一个变量的宽度(大小);
config.GetLength();
0 0
- CDuiString 用法详解
- CDuiString的bug
- 实战c++中的string系列--CDuiString和string的转换(duilib中的cduistring)
- 用法详解
- error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::CDuiString::CDuiStr
- window.open用法详解
- jar用法详解
- extern用法详解
- typedef struct 用法详解
- GetRows的用法详解
- extern用法详解
- memset用法详解
- Format用法详解
- DOCTYPE用法详解
- Format用法详解
- const用法详解
- typedef用法详解
- const用法详解
- 工作队列workqueue 详细资料
- 大白话解析模拟退火算法(simulate annealing)
- 关于html代码中name为apple-itunes-app的meta标签
- Remove Element
- 基于Crypto++/Cryptopp的rsa密钥生成,rsa加密、解密,rsa签名、验签
- CDuiString 用法详解
- js 学习之路
- 《Python灰帽子》 构建自己的Windows调试器中的一个问题
- MongoDB进阶-索引
- poj 3017 Cut the Sequence(dp单调队列优化)
- jsonp
- xml显示(css,xslt)
- Linux内核编译相关介绍
- Navicat for Oracle安装配置笔记(解决ORA-28547错误)