p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 17th, 2003, 04:08 PM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 :)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old July 17th, 2003, 06:18 PM
Ned Ned is offline
Authorized User
Points: 245, Level: 4
Points: 245, Level: 4 Points: 245, Level: 4 Points: 245, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Toronto, ON, Canada.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old July 17th, 2003, 06:37 PM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old July 17th, 2003, 08:06 PM
Authorized User
Points: 196, Level: 3
Points: 196, Level: 3 Points: 196, Level: 3 Points: 196, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , Quebec, Canada.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual SourceSafe 2005 questions? MSByrnes Other Programming Languages 1 January 7th, 2008 02:45 AM
Visual Sourcesafe somnath.kartic ASP.NET 2.0 Professional 4 January 10th, 2007 05:09 PM
sourcesafe jay schumacher VB.NET 2002/2003 Basics 0 April 19th, 2006 02:11 PM
SourceSafe Error Fuad VB How-To 1 November 25th, 2004 06:34 AM
Using SourceSafe with ASP.NET Alaric VS.NET 2002/2003 2 October 3rd, 2003 04:28 AM



All times are GMT -4. The time now is 10:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc