Some applications need to monitor directories for one or more reason. For example those who monitor some events and take backup of data. CDir and RFs are key API to monitor directories. Asynchronous method NotifyChange() of class RFs will notify on change/modification/addition/removal of directory or file. Since NotifyChange() is an asynchronous request those who want to implement it must learn the Active Objects.
The class CDirectoryMonitor illustrate how to monitor directories. Similarly files can also monitored using RFs::NotifyChange() API. Article has source code which helps beginners to understand the implementation. This code example is well designed and followed naming convention, which helps to understand code easily. Comments help easily to navigate in the code. Source code (link at bottom of article) will helps the beginners check working code example.
--kamlesh sangani 15:59, 9 September 2009 (UTC)
Very handful article describing the way one can build monitor for directory changes, with well commented code sample its easy to undertand and learn with. I recommend this article too.
Only complain with this article is does not support monitoring same folder in multi drives. else this snippet work for all versions of the platform. --Skumar rao 18:09, 10 September 2009 (UTC)