Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi PANsiChar (https://www.delphipraxis.net/24388-pansichar.html)

G G 20. Jun 2004 13:04


PANsiChar
 
hi,

wie wandelt man einen string in Pansichar um?

mein compiler sagt immer string und PANSIChar sind nicht kompatieblel, deswegen muss ich wohl einen umwandeln.

vielen dank
GG

alcaeus 20. Jun 2004 13:05

Re: PANsiChar
 
Ganz einfach:
Delphi-Quellcode:
var
  s: String;
  p: PAnsiChar;
//...
p := PAnsiChar(s);
Greetz
alcaeus


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:46 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-2025 by Thomas Breitkreuz