是否有网站可以将下面的代码翻译成 Delphi。:
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?
或者那些带有注释的方法的delphi等价物是什么?谢谢!