Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 08.04.06 11:27 
ich hab bei copyfile einen die dateinamen (alt und neu) eingegeben aber er (delphi) sagt mir das ungenügend params hab!! was is das problem?? braucht ihr dazu den Quelltext??

(hab ihn nämlich leider nicht da!!)
Trunks
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62

winXP, win98, winME, debian, suse, maCoS, Symbian, WinCE
Delphi 7, Delhi 2006, c++, MySql, db2, php, js, java, c#, assembler,
BeitragVerfasst: Sa 08.04.06 11:32 
Hi,

es wäre schon Praktisch zu sehen was du gemacht hast.
Vielleicht hast ein "," in der Variable.
Man sollte schon sehen wo der fehler liegt. Delphi ist ja launisch^^

Gruss,
MArc
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 08.04.06 12:07 
CopyFile braucht drei Parameter. Aber das sollte dir eigentlich die Codevervollständigng anzeigen. :roll:
Trunks
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 62

winXP, win98, winME, debian, suse, maCoS, Symbian, WinCE
Delphi 7, Delhi 2006, c++, MySql, db2, php, js, java, c#, assembler,
BeitragVerfasst: Sa 08.04.06 12:18 
user profile iconLuckie hat folgendes geschrieben:
CopyFile braucht drei Parameter. Aber das sollte dir eigentlich die Codevervollständigng anzeigen. :roll:


also bei mir braucht's nur 2
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 08.04.06 12:33 
Also die API Funktion braucht definitiv drei:
ausblenden Quelltext
1:
2:
3:
4:
5:
BOOL CopyFile(
  LPCTSTR lpExistingFileName,
  LPCTSTR lpNewFileName,
  BOOL bFailIfExists
);
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Sa 08.04.06 12:36 
der 3te Param gibt eigentlich an, was passiert, wenn die Zieldatei schon existiert.
Vlt. is der in manchen Delphiversionen als const deklariert?

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
raiguen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 374

WIN 2000prof, WIN XP prof
D7EP, MSSQL, ABSDB
BeitragVerfasst: Sa 08.04.06 17:52 
Moin :-)
ausblenden Quelltext
1:
2:
3:
4:
//--Ziel vorhanden, aber ohne Rückfrage überschreiben
CopyFile(PChar(Quelle), PChar(Ziel), False);
//--Ziel vorhanden, Kopiervorgang abbrechen
CopyFile(PChar(Quelle), PChar(Ziel), True);

Quelle und Ziel incl. Pfad!
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 08.04.06 18:37 
danke ich werds probieren!!