A
Hi,
also:
das hier:
if (Form1->Edit1->Text != "" && Form1->Edit2->Text != "" &&
Form1->Edit3->Text != "" && Form1->Edit4->Text != "")
würde ich zur Übersichtlichkeit so schreiben (ich weiß nicht ob's notwendig ist):
if (((Form1->Edit1->Text != "") && (Form1->Edit2->Text != "")) &&
((Form1->Edit3->Text != "") && (Form1->Edit4->Text != "")))
Dann würde ich die OnChange von Edit1, Edit2, Edit3 und Edit4 auf die selbe Funktion setzen (du machst ja eh immer das selbe).
Und warum machst du das hier:
char *Text = "Quell- und Zieldatei sind identisch!\nDies führt zur Zerstörung der Quelldatei.";
Application->MessageBoxA(Text,"Eingabefehler",MB_OK|MB_ICONWARNING);
nicht einfach so:
Application->MessageBox("Quell- und Zieldatei sind identisch!\nDies führt zur Zerstörung der Quelldatei.","Eingabefehler",MB_OK|MB_ICONWARNING);
?
Das hier kommt am besten über TForm1 *Form1:
using namespace std;
Und kannst du mir mal logisch diese Struktur erklären? Woher kommt da das if bzw. wo endet es?
if stream quelle(namequelle, ios::in|ios::binary);
ofstream ziel(nameziel, ios::out|ios::binary);
Erstmal ein Anfang...
MfG
Alexander Sulfrian