45fan.com - 路饭网

搜索: 您的位置主页 > 网络频道 > 阅读资讯:String类的赋值语句介绍

String类的赋值语句介绍

2016-08-31 08:40:39 来源:www.45fan.com 【

String类的赋值语句介绍

AnsiString -> char AnsiString.c_str();
char -> AnsiString AnsiString=AnsiString(char);
BSTR -> char* char* char1=AnsiString(bstr).c_str();
wchar_t -> ansistring ansistring(wchar_t)
ansistring -> wchart ansistirng.WideChar();
char -> WideString char *s="adsfdsf";
wchar *p=Widetring(s).BSTR();
WideString -> char wchar_t *p=L"sdsfdfsf";
char *s=AnsiString(p).c_str();
char * c -> wchar_t * cc AnsiString con = c;
cc = con.WideChar( cc , con.WideCharBufSize );
wchar_t * c -> char * cc AnsiString con = c;
cc = con.c_str();
WideString -> wchar_t WideString a = L"abc";
wchar_t *b = new wchar_t[4];
wcscpy(b, a); AnsiString=AnsiString(b);

WideString wsNote ;
// wsNote = ........
AnsiString sNote = wsNote;
 

本文地址:http://www.45fan.com/a/question/70158.html
Tags: 一些 string BCB
编辑:路饭网
关于我们 | 联系我们 | 友情链接 | 网站地图 | Sitemap | App | 返回顶部