title: C# to Delphi Translation/ Converter
body: <p>Is there are websites that I can translate the code below to Delphi. :</p>
  
  <pre><code>       var newpin = new IntPtr();
  
  
         newpin = Marshal.AllocHGlobal(8); // what is this function?
         retcode = Namespace.CashierCardInstallation("1234", ref newpin); // static method
         if (retcode != 0)
         {
             MessageBox.Show("installation failed");
  
         }
  
  
  
         var pin = new byte[8];
         Marshal.Copy(newpin, pin, 0, 8); // what is this function?
  </code></pre>
  
  <p>Or what is the delphi equivalent of those methods with comments? Thank you!</p>