Autor Beitrag
DOCa Cola
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

Vista x64
D2007
BeitragVerfasst: Mo 20.12.04 21:01 
wie kann ich den string c:\temp\test.txt nach c:\\temp\\test.txt (einfach) konvertieren damit ich ihn mit CreateFile zusammen verwenden kann?

gruß DOCa Cola
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mo 20.12.04 21:11 
mit StringReplace ? :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
DOCa Cola Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

Vista x64
D2007
BeitragVerfasst: Mo 20.12.04 21:26 
wenn man den halben tag programmiert kommt man auf die einfachsten lösungen nicht... :roll: :wink:
thx

gruß DOCa Cola
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 21.12.04 06:10 
Seit wann braucht CreateFile unter Delphi doppelte Backslashes? In Delphi ist der "\" kein Einleitungszeichen für eine Escape Sequenz.
DOCa Cola Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

Vista x64
D2007
BeitragVerfasst: Sa 01.01.05 11:38 
Keine ahnung, sagt ihr es mir ;)
ich verwende es in der art
ausblenden Delphi-Quelltext
1:
hLogFile := CreateFile(pChar(StringReplace(ExtractFilePath(ParamStr(0)), '\', '\\', [rfReplaceALL]) + 'Unterordner\\Test.txt'), GENERIC_READ, FILE_SHARE_READ or FILE_SHARE_WRITE, nil, OPEN_EXISTING, 0,0);					


gruß DOCa Cola