Recent

Author Topic: ReadDirectoryChangesW not found  (Read 1739 times)

CraigNZ

  • New Member
  • *
  • Posts: 37
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
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: 37
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
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

  • Sr. Member
  • ****
  • Posts: 299
Re: ReadDirectoryChangesW not found
« Reply #4 on: April 03, 2019, 11:46:36 am »
Hi, i use this Package, see attachment.
greetings Maik

Windows 10,
- Lazarus 2.2.6 (stable) + fpc 3.2.2 (stable)
- Lazarus 2.2.7 (fixes) + fpc 3.3.1 (main/trunk)

CraigNZ

  • New Member
  • *
  • Posts: 37
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

 

TinyPortal © 2005-2018