title: converting a c++ pointer cast to delphi
body: <p>actually i am converting a  c++ code to delphi, but i have problem to translate this line</p>
  
  <pre><code>PIMAGE_NT_HEADERS header = (BYTE *)lib + ((PIMAGE_DOS_HEADER)lib)-&gt;e_lfanew;
  </code></pre>
  
  <p>to delphi (this is my result at the moment)</p>
  
  <pre><code>var
    lib        : THandle;
    header : PImageNtHeaders;
  begin
     //....
    //.....
       header := Pointer(PByte(lib) + PImageDosHeader(lib)._lfanew);   
   end;
  </code></pre>
  
  <p>but the compiler gives me this message <code>operator not applicable to this operand type</code></p>
  
  <p>can you help me to translate this line.</p>