|
|
 |
| Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Pro VB 6 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

July 17th, 2003, 04:08 PM
|
|
Registered User
|
|
Join Date: Jun 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Launch Visual SourceSafe
I was wondering how to launch Visual SourceSafe within a VB application? I tried the following code:
Dim VSSApp As Object
Set VSSApp = GetObject("", "SSEXP.application")
SSEXP.exe is the SourceSafe executable, however I am not sure what to call in order to launch it. I included the reference to SourceSafeTypeLib, however this dll does not give me the capability to create the object. I get the error ActiveX component cannot create object. Any help is appreciated.
Thanks,
Sheena :)
|

July 17th, 2003, 06:18 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Location: Toronto, ON, Canada.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sheena,
Here find the code to launch the SourceSafe application.
Cheers,
-Ned
Dim ReturnValue As Integer
'Open the SourceSafe application from the specified path
If Len(Dir("C:\Microsoft Visual Studio\VSS\win32\SSEXP.EXE")) > 0 Then
ReturnValue = Shell("C:\Microsoft Visual Studio\VSS\win32\SSEXP.EXE", 1)
AppActivate ReturnValue ' Activate the window
End If
Quote:
quote:Originally posted by sheenaacre02
I was wondering how to launch Visual SourceSafe within a VB application? I tried the following code:
Dim VSSApp As Object
Set VSSApp = GetObject("", "SSEXP.application")
SSEXP.exe is the SourceSafe executable, however I am not sure what to call in order to launch it. I included the reference to SourceSafeTypeLib, however this dll does not give me the capability to create the object. I get the error ActiveX component cannot create object. Any help is appreciated.
Thanks,
Sheena :)
|
-Ned
|

July 17th, 2003, 06:37 PM
|
|
Registered User
|
|
Join Date: Jun 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Ned,
But unfortunately, I didn't specify that other people will be using this code (it's an add-in) and I want to launch visual sourcesafe without the pathname being hardcoded. The shell function works great when launching it from my computer but I now need to find a function that will search the registry for the path (since it varies on each computer) and then use that pathname variable. Something like this Shell(pathname).
Any ideas?
Thanks
|

July 17th, 2003, 08:06 PM
|
|
Authorized User
|
|
Join Date: Jun 2003
Location: , Quebec, Canada.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Sheena,
You can get the installation path in the key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudi o\6.0\Setup\Microsoft Visual SourceSafe\ProductDir"
Stéphane Lajoie
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |