Einzelnen Beitrag anzeigen

Hawkeye219

Registriert seit: 18. Feb 2006
Ort: Stolberg
2.227 Beiträge
 
Delphi 2010 Professional
 
#7

Re: Shellfileoperation (Datei kann nicht kopiert werden)

  Alt 7. Mär 2008, 18:28
Hallo David,

in der Dokumentation von Microsoft steht unter anderem folgendes zu den Feldern pFrom und pTo:

Zitat:
Although this member is declared as a single null-terminated string, it is actually a buffer that can hold multiple null-delimited file names. Each file name is terminated by a single NULL character. The last file name is terminated with a double NULL character ("\0\0") to indicate the end of the buffer.
Versuche es einmal so:

Delphi-Quellcode:
pFrom := PChar(fromFile + #0);
pTo := PChar(toFile + #0);
Gruß Hawkeye
  Mit Zitat antworten Zitat