Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. catching file changes

catching file changes

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomsysadmincareerlearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joao Vaz
    wrote on last edited by
    #1

    Fellow cpians , how can I hook to a file to catch that the file changed ? I'm must code a application that is always monitoring a file on the filesystem and every time that the file is updated , I need to be notified of the fact to reload the file data in my COM Server. Some Windows message , DDE event , hooking mechanism (In a long distant past I already have done something like this, but it's part of my forgotten memories)??? Thanks in advance. Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

    A 1 Reply Last reply
    0
    • J Joao Vaz

      Fellow cpians , how can I hook to a file to catch that the file changed ? I'm must code a application that is always monitoring a file on the filesystem and every time that the file is updated , I need to be notified of the fact to reload the file data in my COM Server. Some Windows message , DDE event , hooking mechanism (In a long distant past I already have done something like this, but it's part of my forgotten memories)??? Thanks in advance. Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      ReadDirectoryChangesW OR FindFirstChangeNotification

      J 1 Reply Last reply
      0
      • A AlexO

        ReadDirectoryChangesW OR FindFirstChangeNotification

        J Offline
        J Offline
        Joao Vaz
        wrote on last edited by
        #3

        The 2 functions don't work only on a single file , but making a directory with only 1 file should do the trick. So many thanks for your help :-) Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups