PDA

View Full Version : pvcs and source safe VB integration


Beemer Biker
07-03-2003, 08:21 AM
I am having problems with the PVCS client that integrates with Visual Basic.
First, a question:

(1) Is there a way to have both Source Safe and PVCS in VB? Google
indicates a few people have done this and there is a cryptic reference to
using the Add-In Manager, but I do not see any choice other than "Source
Code Control" and no browse. When I installed PVCS I recall that it got rid
of source safe. I uninstalled PVCS and reinstalled Source Safe, but PVCS is
not around (as a client, the version manager is still available). Any
suggestions?


(2) I cannot get VB (or the PVCS client actually) to let me re-add a
project to PVCS. When I put the project in the wrong location (my first
time to ever use pvcs), I was able to delete the project (and associated
filesname) but the archive files that have the real code were not actually
deleted. I then hunted for those archive files, found them on our fileing
system repository and deleted them. I would have though this would allow me
to add the project back in as a new project. Instead, the VB client of PVCS
tells me the sources have already been added to PVCS. This is incorrect
because if I immediately attempt to check them out, PVCS (the VB client
actually) tells me it can't find the archive that has the files (I got rid
of it earlier). From my experience with Source Safe, something simular
happens, but the Source Safe client (VB) says it cannot reconnect and asks
if I want to browse for the project. When I tell it not to attempt to
connect, the Source Safe client then pops up it's dialog box and
sure-enough: there an option to add the project to SourceSafe. This works
and I can add my project and all the files in it.

Unaccoutable, with PVCS, I cannot get that original option of "Add project"
to show up. I checked with my PCSS admin (who is just as new as I am to
this) and he thinks the problem is in VB, not PVCS, and suggests that
something in the registery has a flag that makes the PVCS client think the
files are already in PVCS. I did a search thru the registery keying on
"pvcs" but didn't see anything interesting. I looked under \program~1\pvcs
and didnt see anything interesting either. How can I get the original
option of "Add Project To Source Control" to show up in VB?

Brett
07-03-2003, 07:18 PM
I don't have answers to all of your questions but maybe something of help.

1) As far as I know, you can only have one active SCC provider on your
system at a time. You can have multiple installed (in your case PVCS and
Source Safe). PVCS installs a utility to allow changing the active provider.
I have used it successfully in the past.

2) First, one thing you do need to get used to with PVCS is that the project
structure you see and normally work with is completely independent of how
and where you store the corresponding archives. Allows for some flexibility
but also some confusion until you get used to it. Of course, it is generally
a good idea to have the archive structure and project structure match. The
other side effect that you found is that deleting a project does not delete
the archives. This behavior is by design.
Second, I don't have a specific answer to your VB issue except to say that
it is the VB project file that keeps track of whether the project is
attached to source control or not. Having deleted the PVCS info will have
had no impact on VB except that it can no longer find the corresponding
archives. I would suggest seeing if you can disconnect from source control
entirely then try to re-add the project. Might want to try the utility
mentioned above to disable all SCC providers temporarily to see if you can
get the VB project back to an reasonable state.

"Beemer Biker" <antispam@sbcglobal.net> wrote in message
news:vg8m08iau5a72a@corp.supernews.com... I am having problems with the PVCS client that integrates with Visual
Basic. First, a question: (1) Is there a way to have both Source Safe and PVCS in VB? Google indicates a few people have done this and there is a cryptic reference to using the Add-In Manager, but I do not see any choice other than "Source Code Control" and no browse. When I installed PVCS I recall that it got
rid of source safe. I uninstalled PVCS and reinstalled Source Safe, but PVCS
is not around (as a client, the version manager is still available). Any suggestions? (2) I cannot get VB (or the PVCS client actually) to let me re-add a project to PVCS. When I put the project in the wrong location (my first time to ever use pvcs), I was able to delete the project (and associated filesname) but the archive files that have the real code were not actually deleted. I then hunted for those archive files, found them on our fileing system repository and deleted them. I would have though this would allow
me to add the project back in as a new project. Instead, the VB client of
PVCS tells me the sources have already been added to PVCS. This is incorrect because if I immediately attempt to check them out, PVCS (the VB client actually) tells me it can't find the archive that has the files (I got rid of it earlier). From my experience with Source Safe, something simular happens, but the Source Safe client (VB) says it cannot reconnect and asks if I want to browse for the project. When I tell it not to attempt to connect, the Source Safe client then pops up it's dialog box and sure-enough: there an option to add the project to SourceSafe. This works and I can add my project and all the files in it. Unaccoutable, with PVCS, I cannot get that original option of "Add
project" to show up. I checked with my PCSS admin (who is just as new as I am to this) and he thinks the problem is in VB, not PVCS, and suggests that something in the registery has a flag that makes the PVCS client think
the files are already in PVCS. I did a search thru the registery keying on "pvcs" but didn't see anything interesting. I looked under
\program~1\pvcs and didnt see anything interesting either. How can I get the original option of "Add Project To Source Control" to show up in VB?

Robert Cowham
07-04-2003, 01:31 AM
"Douglas Gallant" <no@spam.net> wrote in
news:%l6Na.46454$8B.40137@twister.nyroc.rr.com:
I don't have answers to all of your questions but maybe something of help. 1) As far as I know, you can only have one active SCC provider on your system at a time. You can have multiple installed (in your case PVCS and Source Safe). PVCS installs a utility to allow changing the active provider. I have used it successfully in the past.

This is all driven by a single global registry entry read by VB when it
starts up.

You could start VB for one project, change the entry and start VB for
another project and they would use different providers.

There are utilities around that do this, or you can export reg key files
and just double click on them to load the info.

Check under this key for valid values:

HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider
\InstalledSCCProviders

Then copy one of those values to this key:

[HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider]
"ProviderRegKey"

e.g.

"ProviderRegKey"="Software\\Microsoft\\SourceSafe"
or
"ProviderRegKey"="SOFTWARE\\Perforce\\p4"
etc.

--
Robert Cowham


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service