Some of you have probably seen this problem when using SourceSafe (VSS) and a project hook:
- Specify Project Hook class for a project
- Update Project List
- Project Hook is no longer specified on project
A look at the PJM file shows that the project hook is included, so it is unclear what the problem is. After some experimenting, I think I found a workaround:
- Specify the Project Hook class normally
- Open the PJX file as a table (USE MyProject.pjx)
- Find the Project Hook record (TYPE = "W")
- Change the LOCAL field to .T.
- Close the PJX file and open the project
- Update Project List and the Project Hook class should remain
What this is doing is removing the Project Hook class from the Update Project List process altogether. You'll notice that it is no longer included in the PJM file. This will have to be done for each developer, unless you just copy the project files.
Note that this does not solve the problem of putting the Project Hook class under source control. Since the class is in use while the project is open, it cannot be updated. The inherit flaw is that only a VCX can be specified as the Project Hook class. As a workaround, you should be able to create a generic VCX that hooks into a PRG class using BindEvent() or something similar. You could then put the PRG under source control. I haven't tested this, but it is worth a try.
Hope this helps somebody.