std::wstring to System::String ^

After some tutorials I managed to get information from .xml, but where is another problem for me. How can i convert wstring to System::String^ ?

I obtained information from .xml with CMarkup libraby.

1
2
3
4
5
6
7
	CMarkup xml;
	xml.Load( MCD_T("play.xml") );
	xml.FindElem();
	xml.IntoElem();
	xml.FindElem( MCD_T("TITLE") );
	std::wstring strTitle = xml.GetData();
	//radioButton5->Text = strTitle; 


It still not working if I use this line (maybe not even suppose to)
System::String ^ strTitle = xml.GetData();
Found myself, if anyone will have the same problem:

1
2
wstring strTitle = "problem solved";
String^ str3 = gcnew String(strTitle.c_str());

does xml.GetData() returns any value? btw, this is C++/CLI right?
Topic archived. No new replies allowed.