Autor Beitrag
AuronX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Fr 06.08.04 17:26 
Hallo an alle,

ich möchte einen (Short)String in PansiChar umwandeln um mithilfe
von Copyfile eine Datei zu kopieren. Ich würde mich freuen, wenn mir jemand helfen kann.
Danke im Voraus
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Fr 06.08.04 17:46 
AuronX hat folgendes geschrieben:
Hallo an alle,

ich möchte einen (Short)String in PansiChar umwandeln um mithilfe
von Copyfile eine Datei zu kopieren. Ich würde mich freuen, wenn mir jemand helfen kann.
Danke im Voraus


Hi,

das geht ganz einfach
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
Variable := PChar(MeinString);
// oder mit CopyFile
var
  Source, Target: String;
begin
  CopyFile(PChar(Source), PChar(Target), False);
end;

_________________
May the source be with you, stranger.