Visual Studio Development Bookmark and Share   
 index > Visual Studio Source Control and SourceSafe > SCC: how to show only login dialog?
 

SCC: how to show only login dialog?

Hello,

I have the following task at the moment: when my application is starting I have to open some VSS project (info which necessary for the opening placed on the hard drive) and I am trying to use SccGetProjPath to do this. The problem is the "Choose project from SourceSafe" dialog will appear after a user has entered the user name and password to the "Log On to Visual SourceSafe Database" dialog.

But in my case the name of the project is known and I wanna avoid the showing of the second dialog. BTW, Visual Studio 2008 shows only the first dialog in the similar situation.

I have read many articles connected with the problem but I cannot find solution. If someone has the ideas to solve the problem, please let me know.

Thanks in advance

Alexander Sviridov  Tuesday, September 08, 2009 1:48 PM
Hi Nancy, Thank you for the help. I have found the solution. I did wrong sequence of the steps which necessary to login to VSS. At the beginning I called SccGetProjPath and after that I called SccOpenProject (BTW, I called the last function with the SCC_OP_SILENTOPEN flag). The rigth project opening process is: call of SccOpenProject without SCC_OP_SILENTOPEN flag - and that is all. In the last case we can see the login dialog (if VSS cannot login with default login information) and the corresponding project will be opened and no more dialogs will be shown.
Alexander Sviridov  Thursday, September 10, 2009 12:32 PM

Hi Alexander,

"Choose project from SourceSafe" dialog always popup when you want to change Source Control. How do you use SccGetProjPath to open VSS projects?

As far as I know, SccPopulateList is used when you open project from Source Control. SccGetProjPath gives you a path only, then Visual Stuidiocalls SccPopulateList to retrieve files (solution and project) in the source control path, to allow user selection of specific solution/project to open.

For your reference, please refer to:

Best Regards,
Nancy





Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao  Thursday, September 10, 2009 6:58 AM
Hi Nancy, Thank you for the help. I have found the solution. I did wrong sequence of the steps which necessary to login to VSS. At the beginning I called SccGetProjPath and after that I called SccOpenProject (BTW, I called the last function with the SCC_OP_SILENTOPEN flag). The rigth project opening process is: call of SccOpenProject without SCC_OP_SILENTOPEN flag - and that is all. In the last case we can see the login dialog (if VSS cannot login with default login information) and the corresponding project will be opened and no more dialogs will be shown.
Alexander Sviridov  Thursday, September 10, 2009 12:32 PM
Thanks for the information,Alexander.

Cheers.

Catherine Sea
Version ControlSoftware |Software Configuration ManagementSolution

Catherine Sea  Friday, September 11, 2009 6:43 AM
If you code in VS .net. You can do as below in ur form log in:


Private Sub cmdLogIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogIn.Click
Me.Hide()
MDIform.ShowDialog()
End Sub
Kon Khmer  Monday, September 14, 2009 9:16 AM

You can use google to search for other answers

Custom Search

More Threads

• Creating a Visual SourceSafe database
• add stored procedures to SourceSafe
• SourceSafe Control
• How to export all VSS metadata for all configuration items in VSS
• VSS Space
• Remote WEB access to VSS 2005 without using Visual Studio
• What will the recommeded Build Process and Code Transition method in our case?
• Breaking all Links...
• VS 2003 with VSS 6.0d after installing Beta 2.0 of VS 2005
• VSS2005 client access