title: How to copy contents of one buffer pointer to another
body: <p>I have the following pointer:</p>
  
  <pre><code>BSTR *PREVIOUS;
  </code></pre>
  
  <p>And I want make a new copy to:</p>
  
  <pre><code>BSTR *NEW;
  </code></pre>
  
  <p>I want to copy the CONTENTS/DATA (that PREVIOUS is pointing) from PREVIOUS to NEW.</p>
  
  <p>I've just tried the following command, but it doesn't work:</p>
  
  <pre><code>memcpy(NEW,PREVIOUS,SysStringByteLen(*PREVIOUS));
  </code></pre>
  
  <p>I dont see any error when compiling because I am working on ATL COM environment. Please help. Thank you!</p>