title: How to convert list element to string?
body: <p>I have a try to binding data to textblock in vs 2013.</p>
  
  <p>But I got some problem when I am try to convert list item to string.</p>
  
  <p>this is the error message from vs :</p>
  
  <pre><code>no instance of constructor "std::basic_string&lt;_Elem, _Traits,
  _Alloc&gt;::basic_string [with _Elem=wchar_t,
  _Traits=std::char_traits&lt;wchar_t&gt;, _Alloc=std::allocator&lt;wchar_t&gt;]"
  matches the argument list argument types are:
  (std::_List_iterator&lt;std::_List_val&lt;std::_List_simple_types&lt;std::string&gt;&gt;&gt;)
  </code></pre>
  
  <p>this is my code :</p>
  
  <pre><code>list &lt;string&gt; c1;
  
  //Insert Data
  c1.push_back("one");
  c1.push_back("two");
  c1.push_back("three");
  c1.push_back("Four");
  c1.push_back("Five");
  c1.push_back("Six");
  c1.push_back("Seven");
  c1.push_back("Eight");
  c1.push_back("Nine");
  c1.push_back("Ten");
  
  
  
  
  //Random data from list
  
  int RandNum = 0 + (std::rand() % 10);
  
  auto en = c1.begin();
  advance(c1.begin(), RandNum);
  
  std::wstring s1(*en);
  
  std::string s2(*en);
  
  ENTEXT-&gt;Text = s2; //ENTEXT is textblock name
  </code></pre>
  
  <p>I am try to pass list element to textblock, but this code shows </p>
  
  <p>error C2664 : 'void Windows::UI::Xaml::Controls::TextBlock::Text::set(Platform::String ^)' : cannot convert argument 1 from 'std::string' to 'Platform::String ^'   </p>