Autor Beitrag
patmann2001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mi 21.08.02 21:34 
Hallo
Ich habe da ein Problem mit dem API call CopyFile. Die Dateinamen sollen PChar sein, meine sind leider STRING, deshalb geht es nicht. Wie bekomme ich aus dem String nun ein PChar gemacht?

cu Patmann
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Mi 21.08.02 21:40 
Hi
versuche es mal mit der Funktion PChar()
ausblenden Quelltext
1:
pvar := PChar(svar)					

Bis dann,
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
patmann2001 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mi 21.08.02 22:40 
YO
Danke hat geklappt
cu Patmann