![]() |
delphi – How to convert a null terminated string to string? – Stack Overflow
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 @, […]
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:49 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz