Autor Beitrag
Paddymann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58


Delphi 5 Professional
BeitragVerfasst: Di 02.05.06 16:54 
Tag!
Ich lösche Dateien mit Hilfe der DeleteFile Function aus der ShellAPI. Jetztz möchte ich in einer anderen Procedure, die die DeleteFile Funktion aufgerufen hat überprüfen ob die Dateien/Verzeichnisse auch wirklich gelöscht wurden. In der Windows SDK steht dazu etwas von "fAnyFileOperationsAborted". Jedoch gibt der Kompiler die Fehlermeldung Undefinierter Bezeichner dazu aus egal wo ich fAnyFileOperationsAborted stehen habe.

thx und mfg
patti
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: Di 02.05.06 17:03 
vielleicht gehts mit DirectoryExist bzw FileExist!?!
Paddymann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58


Delphi 5 Professional
BeitragVerfasst: Di 02.05.06 17:16 
Jau habs damit hinbekommen. Danke für deine schnelle Hilfe.

thx und mfg
Patti
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: Di 02.05.06 17:20 
immer wieder gerne!!!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 02.05.06 17:35 
du kannst doch auch mit dem Rückgabewert von DeleteFileprüfen, ob die Funktion ordnungsgemäß ausgeführt wurde.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Paddymann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 58


Delphi 5 Professional
BeitragVerfasst: Di 02.05.06 17:38 
Das habe ich probiert. Das funzt aber net. result gibt da glaub ich nur an ob da kein Fehler in der FUnktion aufgetreten ist, und nicht ob ein Löschvorgang evtl. durch den Benutzer abgebrochen wurde.
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: Di 02.05.06 17:39 
na toll!! immer wenn ich glaube eine Tolle richtige antwort gegeben zu haben kommt irgendjemand und glaubt er weiß es besser!!!

nur das blöde ist, er weiß es wirklich besser!!^^
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 03.05.06 18:08 
wenn du eine Datei mit DeleteFile löscht, dann kann der User die Operation nicht abbrechen !

_________________
In the beginning was the word.
And the word was content-type: text/plain.