Autor Beitrag
lambruco
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 100

Win 2000/2000 Server/XP
D6 Prof.
BeitragVerfasst: Do 04.09.03 13:44 
Moin Forum,

sorry für das vielleicht "unpassende" Thema, aber ich weiss nicht, wie ich mein Problem besser umschreiben sollte. :oops:

Jetzt mein Problem:
Ich möchte einen Ordner auf Veränderungen überwachen und benutzte dafür "FindFirstChangeNotification". Wenn sich jetzt etwas getan hat, möchte ich genau die Datei haben, in der etwas passiert ist.
Wie kann ich das jetzt herausfinden, oder gibt es da schon eine mir noch unbekannte Funktion ?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
while not (terminated) and (FindNextChangeNotification(m_hNotify))do
       begin
          Application.ProcessMessages;
          dwWaitStatus := WaitForSingleObject(m_hNotify, 500);
          if dwWaitStatus = WAIT_FAILED then
            begin
              RaiseLastOSError();
              break;
            end;
          if dwWaitStatus = WAIT_OBJECT_0  then
            begin
              Function
              Application.ProcessMessages;
            end;
        end;
    end;


Oder ist hier schon was falsch ??

_________________
Wer Rechtschreibfehler findet, kann Sie behalten
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Do 04.09.03 18:05 
leider nein, zumindest ist mir keine bekannt. Ich hatte das gleiche Prob, habs dann so gelöst, das ich mir die Files merke.
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?