title: change variable value by reference c++/windows forms
body: <p>I'm trying to change a variable value by reference (with a function).</p>
  
  <p>My Function:</p>
  
  <pre><code>void chgVariable(String^ *trgvari,String^ trgvarival)
  {
   *trgvari = trgvarival;
  }
  </code></pre>
  
  <p>My Variable:</p>
  
  <pre><code>String^ myStringVar;
  </code></pre>
  
  <p>How do I use:</p>
  
  <pre><code>chgVariable(&amp;myStringVar, gcnew String("Test"));
  </code></pre>
  
  <p>but i get this error:</p>
  
  <p>Cannot convert parameter 1 from 'cli::interior_ptr' to 'String ^*'</p>