Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual SourceSafe Bules
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00095454
Message ID:
00095880
Views:
21
>>>>Is anyone using Visual SourceSafe with VFP.
>>>>
>>>>I have been trying for a few days without real success.
>>>>I get things like files not visible to everyone opening the VSS project, merged forms being corrupted and sharing errors.
>>>>
>>>>Is this the norm or are some of you using SourceSafe successfully?
>>>>
>>>>Chris
>>>
>>>I had a lot of problems trying to get VSS working for me. But, I finally learned how to use the tool.
>>>
>>>Try to follow these steps:
>>>
>>>1. Install VSS Server on your network server (Lets say S:\VSS)
>>>2. Launch NetSetup.exe from S:\VSS\ to install VSS Client on your local machine.
>>>3. Rename the 'Data' folder under S:\VSS\ to 'oData' (for origData).
>>>4. Create a new 'Data' under S:\VSS\
>>>5. Move 'oData' into the newly created 'Data' folder
>>>6. Now create a new folder under the 'Data' folder called 'XX'
>>
>>6a. Copy the contents of 'oData' to 'XX'
>>
>>>7. You can substitute your project name for 'XX'
>>>8. On your local machine go to the folder which holds the VSS Client
>>>9. You must edit a file called 'scrsafe.ini' to include the following lines:
>>>
>>> #include s:\VSS\srcsafe.ini
>>> Database_Name = YourProjectName
>>> Data_Path = S:\VSS\Data\XX
>>>
>>>10.If you create a new project, you will automatically have all rights to the project. To give rights to another User, you must run the VSS Admin.
>>>
>>>ADDING VFP PROJECTS:
>>>
>>>1. From VFP, under the Projects page of the Options dialog, check to see if 'Microsoft Visual SourceSafe' is your active source control provider. make sure to set the Text generation file to 'C:\PROGRAM FILES\DEVSTUDIO\VFP\SCCTEXT.PRG'
>>>
>>>2. From VFP Tools menu, launch VSS
>>>3. Create COMMON FOLDERS for 'Forms','Graphics','Progs','Reports',etc. These folders should be a part of your project. If not, use the names that you have assigned to hold all your forms,graphics,etc.
>>>4. Select the 'Forms' folder in VSS and select 'Add Files' from the toolbar in VSS. You should see a listing of all vfp 'forms' that are in the forms directory. Multi-select all files in the listbox and press 'Add'. Do this for all the common folders that you have created.
>>>5. Now create a folder for one of your sub-projects. For example, if you are working on Project XX which will contain a 'customer.app', you will most likely have 'customer.pjx' under the root of folder XX. So, in VSS, create a new folder called 'Customer'. Under the Customer folder you must create a folder for 'Forms','Graphics', etc., that will contain the files needed for the sub-project 'Customer'.
>>>6. Now go to the COMMON FOLDER 'Forms' and drag those forms that will be needed by sub-project 'Customer' to $/Customer/Forms. This will insure that any changes made to the customer forms will cascade to all copies of forms that are stored in VSS. Do this for the rest of the files that are part of sub-project 'Customer'
>>>7. From VFP, select 'Add Project to Source COntrol' from the Project menu. This will add all the files in the Customer project to VSS.
>>>8. The next time you launch VFP and you want to work on the Customer project, select 'Join Source Control Project...' from the File menu and select 'Customer'.
>>>
>>>Another thing to remember is that if you want Diffing functionality in VFP, you must remove the files added to Source Control and add them back again. You need to do this the first time only so that VSS can display binary files (forms,reports,class libraries) as text files.
>>>
>>>Hope this helps for now...
>
>DO YOU DO THIS FOR EACH PROJECT???

I do this once for my VFP project, once for my VC++ project and once for my Delphi project. The method I use above keeps each language type in it's own VSS Data folder.

>All I have to do in VFP is "CREATE PROJECT ..." - VSS takes control and asks you if you want to create a folder. EVERYTHING is done by VSS in the background. If you have to do the above all the time then something is SERIOUSLY wrong with your installation - scrap it and start again.

Yes, that will work when you are creating a new project, but what to do if you have existing projects that you want to put under source control ? Your method will create the main folder for the project but it will not create sub-folders for 'Forms','Reports',etc. When you share files from the main 'Forms' folder, the files appear in the root of the sub-project folder in VSS. What I want is for these files to appear in their respective folders: /XX/Forms; /XX/Reports; etc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform