title: MessageBox in c++ using string
body: <p>I am getting an error on the following code and I can't figure it out.</p>
  
  <pre><code>string name1 = om-&gt;get_name();
  if (om-&gt;search(name, code))
  {
      MessageBox::Show("name"+name1);
  }
  else
      MessageBox::Show("such a car doesn't exist");
  </code></pre>
  
  <p>Gives me the following error</p>
  
  <blockquote>
    <p>error C2665: 'System::Windows::Forms::MessageBox::Show' : none of the 21 overloads could convert all the argument types</p>
  </blockquote>