A ProjecHook class is like an event handler for a Project. After you attach it, its methods will be called by the Project Manager at appropriate time.
BTW, I tested it in VFP9 and it works fine for a class or class library.
>
>I have followed your advise :
>
>It's a ProjecHook class. You attach it to each project through Project Info, Project tab, Project Class checkbox, ... Do not add it to the project itself. A backup will be performed each time you trigger Modify command through the project. It will not be triggered if you modify anything outside the project.
>
>After that I have also rebuild the project.
>
>Helas, when modifying a class, I cant find nowhere a VXK nor VTK file, even put a breakpoint in the ph_bakckup.querymodifyfile method. It never stopped, I suppose I should also 'tell' my classes, forms etc they need to call this ph_backup.vcx when opened for modification. Where how is this to be done? Only attaching the class in the project builder does not seem to solve the job.
>Checked around on wiki, cant find any wording about this class. Seems I am on a dead-end.
>
>Any further help is appreciated.
>
>Thanks,
>
>Koen
--sb--