Delphi notification when a file gets updated

前端 未结 4 1797
太阳男子
太阳男子 2020-12-10 06:36

My app contains documents in its database. The users can open the documents in which case, the document gets saved to a temporary folder and gets opened on the user\'s compu

4条回答
  •  悲&欢浪女
    2020-12-10 07:05

    In addition to what RRuz and Remy Lebeau wrote:

    Note that TJvChangeNotify in the JvChangeNotify unit makes use of the FindFirstChangeNotification API call; this is the MSDN documentation. Note it is a bit counter-intuitive: see the thread mentioned below on how to use it inside a while loop.

    There is also the ReadDirectoryChanges API call, which is not wrapped by the JCL/JVCL, and has MSDN documentation here and there is a Delphi win32 example as well.

    This thread explains the differences between the two API calls.

    --jeroen

提交回复
热议问题