Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.006 Beiträge
 
#1

delphi – How to convert a null terminated string to string? – Stack Overflow

  Alt 22. Okt 2020, 06:10
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...
  Mit Zitat antworten Zitat