Advertisement

09.18.2007 at 08:52AM PDT, ID: 22836386
[x]
Attachment Details

File change notification without FindFirstChangeNotification

Asked by bovlk in Microsoft Visual C++, Windows MFC Programming, Microsoft Programming

Tags: findfirstchangenotification, file, change, notification

Hello,

is there any way to watch for changes in an open file on Windows XP using API or MFC? What I mean is this. I open file called readme.txt for reading. Then, another app rewrites it. Now, I want my application to be instantly notified using message or event or that like that the file was changed. I tried the FindFirstChangeNotification etc. APIs, but that's unnecessarily complex. I need to check just for one file and be notified instantly. Also, I would prefer the notification to be queued so that if two changes occur in a fast sequence, I don't miss one.

Thanks in advanceStart Free Trial
 
Loading Advertisement...
 
[+][-]09.18.2007 at 09:14AM PDT, ID: 19914251

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C++, Windows MFC Programming, Microsoft Programming
Tags: findfirstchangenotification, file, change, notification
Sign Up Now!
Solution Provided By: jkr
Participating Experts: 4
Solution Grade: A
 
 
[+][-]09.18.2007 at 09:19AM PDT, ID: 19914283

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 09:23AM PDT, ID: 19914321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 09:24AM PDT, ID: 19914325

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 10:09AM PDT, ID: 19914723

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 03:30PM PDT, ID: 19917072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628