Thema: Delphi Problem mit MoveFile

Einzelnen Beitrag anzeigen

Benutzerbild von City Light
City Light

Registriert seit: 17. Sep 2002
314 Beiträge
 
#1

Problem mit MoveFile

  Alt 15. Feb 2003, 15:57
Hallo Leute ich habe ein Problem mit verschieben von dateien

MoveFile('C:/test.exe','d:/test.exe');

ComboBox1.Items[ComboBox1.ItemIndex] = das Verzeichnis
ListBox1.Items[ListBox1.ItemIndex] + '.THM' = die Datei die verschoben werden soll

hier mein Problem:
Delphi-Quellcode:
f := (extractfilepath(ParamStr(0)));

MoveFile(f + 'Themen\' + ComboBox1.Items[ComboBox1.ItemIndex] + '\' + ListBox1.Items[ListBox1.ItemIndex] + '.THM', f + 'Themen\' + Form2.ComboBox1.Items[Form2.ComboBox1.ItemIndex] + '\' + ListBox1.Items[ListBox1.ItemIndex] + '.THM');

er gibt einen Fehler aus Inkompatible Typen: String und PChar

Help!!
Bis bald man liest sich
Tino
  Mit Zitat antworten Zitat