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.
Re: Accessing Sourcesafe Database
What interfaces are you using to access VSS?
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.
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.