title: Delphi Embarcadero XE: tons of warnings with String and PAnsiChar
body: <p>I'm trying to migrate from Delphi 2007 to Embarcadero RAD Studio XE.
  I'm getting tons of warnings.
  They all look like this: I have a procedure where I declare a "String":</p>
  
  <pre><code>procedure SendMail( ADestinataire,ASubject : String);
  </code></pre>
  
  <p>And I'm trying to call Windows API like:</p>
  
  <pre><code>  Res := MAPIResolveName(Session, Application.Handle,
      PAnsiChar(ADestinataire), MAPI_LOGON_UI, 0, PRecip);
  </code></pre>
  
  <p>So the warnings are:</p>
  
  <blockquote>
    <p>W1044: Transtyping string into PAnsiChar suspect.</p>
  </blockquote>
  
  <p>What am I doing wrong / how should I correct this (350 warnings...)?</p>
  
  <p>Thank you very much</p>