title: Error while trying to use strings while working with windows application forms
body: <p>When creating a new class while working in a project that is based around windows application forms. I have a problem where string becomes unusable. I get errors the say things like </p>
  
  <p>"a member of a managed class cannot be of a non-managed class type"</p>
  
  <p>"IntelliSense: a function type involving a generic parameter cannot have an ellipsis parameter"</p>
  
  <p>"IntelliSense: linkage specification is incompatible with previous "bsearch_s"(declared at line 426)"</p>
  
  <p>Person.h</p>
  
  <pre><code>#pragma once
  
  #include &lt;string&gt;
  
  using namespace std;
  
  ref class Person
  {
  public:
      Person(void);
  
      string name;   
  };
  </code></pre>
  
  <p>Person.cpp</p>
  
  <pre><code>#include "stdafx.h"
  #include "Person.h"
  #include &lt;string&gt;
  
  using namespace std;
  
  Person::Person(void)
  {
      name = "Bob";
  }
  </code></pre>
  
  <p>If someone has a solution to this or a work around that isn't creating my own string class I would love to hear it as this has been bothering me for days.</p>