An old trick that I tend to forget: [WayBack] delphi – How to convert a null terminated string to string? – Stack Overflow: You can assign a null-terminated*PChar*directly to a*String: function GetFileName(DiskName: TFileNameIO): string; begin Result := PChar(@DiskName); end; It can work even on string literals and constants, where you can leave out the @, […]
Weiterlesen...