我遇到问题。我需要将字符串类型转换为unicode。 我知道metod像在C++中将std :: string转换为Unicode字符串
string.c_str();
但它不起作用在我的代码。
我有功能
void modify(string infstring, string* poststring)
,并在其中我需要显示备忘录infstring。像
Form1->Memo1->Lines->Add("some text "+infstring.c_str()+" some text");
但是编译器说我“E2085无效指针除了”
我怎样才能解决我的问题?
现在它说“不能将字符串转换为Unicode字符串”。我认为,那ss.str()返回字符串类型,但我需要在unicode字符串。有任何想法吗? – user2090826 2013-02-20 11:09:00
你是什么意思“Unicode字符串”?这不是C++类型,你的意思是什么类型? – 2013-02-20 11:19:13