Recent

Author Topic: ReadDirectoryChangesW not found  (Read 594 times)

CraigNZ

  • New Member
  • *
  • Posts: 27
ReadDirectoryChangesW not found
« on: April 03, 2019, 10:45:15 am »
I am trying to add a new package containing the unit Cromis.DirectoryWatch.  When I compile the package I get an error showing the windows ReadDirectoryChangesW procedure is not found.  I have Windows in the Uses clause.  Is this api call available in Lazarus?

Or, is there an already available package for monitoring changes in a directory?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7918
Re: ReadDirectoryChangesW not found
« Reply #1 on: April 03, 2019, 11:01:17 am »
1. it seems not to be there, please file a bug.
2. it is in the alternative Jedi windows units that come with FPC, unit jwawinbase, but these are less checked for 64-bit.

CraigNZ

  • New Member
  • *
  • Posts: 27
Re: ReadDirectoryChangesW not found
« Reply #2 on: April 03, 2019, 11:33:22 am »
I am using Lazarus version 2.0.0.  Do you think it might be in an earlier version?  Or, is there an easy way to add the unit jwawinbase to a Laz32 package?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7918
Re: ReadDirectoryChangesW not found
« Reply #3 on: April 03, 2019, 11:46:08 am »
That unit should be there. It has been in lazarus and fpc installs since the 2005-2007 timeframe

sstvmaster

  • Full Member
  • ***
  • Posts: 135
Re: ReadDirectoryChangesW not found
« Reply #4 on: April 03, 2019, 11:46:36 am »
Hi, i use this Package, see attachment.
OS: Windows 7 (32 bit) / Windows 10 (64 bit)
Lazarus: 2.0.6 x32 / 2.1.0 Trunk x32

CraigNZ

  • New Member
  • *
  • Posts: 27
Re: ReadDirectoryChangesW not found
« Reply #5 on: April 03, 2019, 12:03:24 pm »
Perfect!  Installed and tested, works like a charm.  Thank you, heaps!

Craig