Código Delphi [-] function GetCPUVendorStr: string;// var Vendor: TVendor; begin Vendor := GetCPUVendor; SetString(Result, PAnsiChar(@Vendor[0]), Length(Vendor)); end; // ************************************************************************************* // ** TmxProtector.InternalGetHardwareID, 10/12/01 2:04:03 PM // ************************************************************************************* Function TmxProtector.InternalGetHardwareID: String;
function GetCPUVendorStr: string;// var Vendor: TVendor; begin Vendor := GetCPUVendor; SetString(Result, PAnsiChar(@Vendor[0]), Length(Vendor)); end; // ************************************************************************************* // ** TmxProtector.InternalGetHardwareID, 10/12/01 2:04:03 PM // ************************************************************************************* Function TmxProtector.InternalGetHardwareID: String;
Código Delphi [-] //Quitar: W1057 Implicit string cast from 'AnsiChar' to 'string' por cambio en TVendor = array[0..11] de Char por AnsiChar; ID_5 := GetCPUVendor; => ID_5 := GetCPUVendorStr;
//Quitar: W1057 Implicit string cast from 'AnsiChar' to 'string' por cambio en TVendor = array[0..11] de Char por AnsiChar; ID_5 := GetCPUVendor; => ID_5 := GetCPUVendorStr;