CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 1999
    Posts
    23

    Accessing Sourcesafe Database

    Do you have to have sourcesafe installed on a machine if you want to access a sourcesafe database that is stored on a server. I have written an app that retrieves and stores files to the database which works fine on my developtment machine but when run on a different PC has connection problems. Is there somekind of runtime dll that needs to be linked into the exe.

    Thanks.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Accessing Sourcesafe Database

    What interfaces are you using to access VSS?

  3. #3
    Join Date
    Jun 1999
    Posts
    23

    Re: Accessing Sourcesafe Database

    Quote Originally Posted by Arjay
    What interfaces are you using to access VSS?
    This is what i am using to open a connection to the database.

    IVSSDatabasePtr mp_vssDatabase;

    mp_vssDatabase.CreateInstance(__uuidof(VSSDatabase);
    mp_vssDatabase->Open(VSSini, User, Password);

    What i want to know is there just a dll i could copy over from the sourcesafe installation if it is needed.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Accessing Sourcesafe Database

    I understand what you are looking for.

    IVSSDatabasePtr is a pointer to a com object. This com object needs to be available and registered on the target machine

    To find what dll hosts this interface use the oleview.exe tool (Open a Visual Studio command prompt and type oleview) or search the classes root key in the registry for IVSSDatabase.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured