title: How to resolve Delphi error: Incompatible types: 'PWideChar' and 'Pointer'
body: <p>I have this piece of code from Delphi 7:</p>
  
  <pre><code>var
    lpRgnData: PRgnData;
    PC: PChar;  
    PR: PRect;
    ...
  
    PC := @(lpRgnData^.Buffer[0]);
  </code></pre>
  
  <p>In Delphi XE4 it gives the following compile error:</p>
  
  <pre><code>Incompatible types: 'PWideChar' and 'Pointer'
  </code></pre>
  
  <p>How should this code be updated to work correctly in XE4?</p>
  
  <p>Thanks</p>