Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c++ filechange

Status
Not open for further replies.

susuke

Technical User
Jul 22, 2002
17
0
0
HU
Hi!

There's a file, what stores events. I don't know how can it be, but when the software (what makes this file) write a new event to the file, the file last write date is not changing and the size is fix (fill with x00).
I try to watch the file with FindFirstChangeNotification and WaitForSingleObject but it doesn't works.
How can i catch someway the changing of this file??
 
>I try to watch the file with FindFirstChangeNotification and WaitForSingleObject but it doesn't works.

Are you using the FILE_NOTIFY_CHANGE_LAST_WRITE parameter?

Is the software closing the file after it writes. The notification will not occur I think unless the file gets closed.

/Per
[sub]
if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
[/sub]
 
Yes. I'm using the FILE_NOTIFY_CHANGE_LAST_WRITE parameter. I tried all the parameters.

If the sw doesn't close the file, then what can i do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top