Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Project Hook/Update Project List Workaround
Message
From
15/03/2006 11:46:22
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Source Safe Control
Title:
Project Hook/Update Project List Workaround
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01104562
Message ID:
01104562
Views:
67
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.
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Reply
Map
View

Click here to load this message in the networking platform